View Single Post
  #1   (View Single Post)  
Old 5th July 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default some login.conf questions

since upgrading to 4.5 it seems sometimes I run out of memory. I remember having this problem before and solving it changing the default "maxproc" value in login.conf. I did it again, but still have problems. What are safe values to set? Should I just use "infinity"? And is it any problem? Why are the default so low? Or should I look at some other setting maybe in sysctl.conf? This is my login.conf, default:
Code:
default:\
        :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin:\
        :umask=022:\
        :datasize-max=512M:\
        :datasize-cur=512M:\
        :maxproc-max=256:\
        :maxproc-cur=128:\
        :openfiles-cur=128:\
        :stacksize-cur=4M:\
        :localcipher=blowfish,6:\
        :ypcipher=old:\
        :tc=auth-defaults:\
        :tc=auth-ftp-defaults:
I get errors like "cannot fork".

By the way, this is my sysctl.conf with already changed values to run postgresql and mplayer:
Code:
kern.seminfo.semmni=256
kern.seminfo.semmns=2048
kern.shminfo.shmmax=50331648
kern.shminfo.shmall=32768
tks
Reply With Quote