Re: limit addendum
Re: limit addendum
- Subject: Re: limit addendum
- From: robert delius royar <email@hidden>
- Date: Sun, 2 Mar 2003 10:19:27 -0500 (EST)
- Organization: An Apple OS X end user
- Priority: NEW
On Sat, 1 Mar 2003, Justin Walker wrote:
>> # raise the hard process limit
>> # man sysctl will show you many system settings
>> sysctl -w kern.maxproc=1000
>> # this sets the hard value in the shell
>> ulimit -H -u512
>> # this sets the soft value
>> ulimit -u256 -s8192 -d12288
>
> Have you actually tried this? I'm not sure what you mean by "sudo the
> commands in the shell". Since 'ulimit' and 'limit' are built-in,
> 'sudo' won't be able to execute them "bare", and if you exit the 'root'
> shell in which you use these commands, you lose the effect. Can you
> clarify?
I apologize the sudo comment was completely wrong. I set this up a long
time ago and forgot why I had to add the sysctl command to the rc script.
You are right, sudo won't work for builtins. But if you have run the sysctl
under root control, then the limit command for csh/tcsh or ulimit for
sh will work because the hard limit has been reset. If the ulimit is run at
system sartup under root control, then it holds for all processes until
restart. I did this because XDarwin and Oroborosx kept crashing with "out
of process errors" when I kept them running for more than a few days.
The stack size changes are so XEmacs will run happily. A 512K stack is
pretty small compared to other unixes.
I placed the command in /etc/rc.common . I tried adding my own script to
/System/Library/Startup, but it would never run--even though it was set with
the same values as the other scripts. So I would like a better solution.
By the way, changeing the process limit stopped the error from occuring,
despite the fact that the default process limit should have been more than
adequate.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.