Re: NPROC / MAXUPRC (Cameron Knowlton)
Re: NPROC / MAXUPRC (Cameron Knowlton)
- Subject: Re: NPROC / MAXUPRC (Cameron Knowlton)
- From: Peter Dyballa <email@hidden>
- Date: Thu, 27 Feb 2003 23:53:02 +0100
Hello!
I remember that in old BSD based SunOS 4.x there was a way to set kernel
variables at runtime using adb. I do remember that once I had to enlarge
something like NPROC, the system-wide no. of processes. In Mac OS X we
have sysctl, IMHO a modern and easy to use tool to achieve the same.
And: "sysctl -a" shows:
kern.maxproc = 532
After reading the man page ("man 8 sysctl") I tried:
pete 156 /\ sysctl -w kern.maxproc=999
kern.maxproc: Operation not permitted
pete 157 /\ sudo sysctl -w kern.maxproc=999
Password:
kern.maxproc: 532 -> 999
pete 158 /\ sysctl -a | grep proc
kern.maxproc = 999
pete 159 /\
But it does succeed to raise the shell's maxproc value above 100! Do I
have to reboot? Logging out and in did not change anything ...
--
Greetings
Pete
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.