![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
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:
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 |
|
||||
|
The "default" login class values are low in order to manage a number of users/processes on a single system. Note the "staff" login class limits are higher.
If you're getting "cannot fork" errors, this is likely due to the "maxproc" value. Note that the resource limits for "staff" are higher than for "default". If this is a single-person workstation, consider setting your personal user to the "staff" class. The reason for these limits is to have a manageable, functioning OS. If there are no no resource limitations, it would be possible that a run-away application could consume all CPU and all available RAM, preventing an admin from executing even a kill to stop the application.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
thanks, it is a single-person workstation, I might change to staff
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| difference between rc.conf and loader.conf | disappearedng | FreeBSD General | 5 | 3rd September 2008 05:54 AM |
| rc.conf questions | starbuck | FreeBSD General | 2 | 29th July 2008 06:16 PM |
| How to set up ssh login | cssgalactic | FreeBSD General | 12 | 28th June 2008 06:00 PM |
| DSL auto login | Weaseal | FreeBSD General | 3 | 17th June 2008 03:26 PM |
| login.conf memoryuse not working | EricM | FreeBSD General | 4 | 22nd May 2008 01:05 PM |