Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #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:
        :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin:\
I get errors like "cannot fork".

By the way, this is my sysctl.conf with already changed values to run postgresql and mplayer:
Reply With Quote
  #2   (View Single Post)  
Old 5th July 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
Join Date: May 2008
Location: USA
Posts: 6,219

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.
Reply With Quote
  #3   (View Single Post)  
Old 5th July 2009
gosha gosha is offline
Spam Deminer
Join Date: Jun 2008
Location: China
Posts: 256

thanks, it is a single-person workstation, I might change to staff
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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

All times are GMT. The time now is 07:32 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick