Subject: Re: More process
To: None <port-sparc@NetBSD.ORG, tech-kern@NetBSD.ORG>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: port-sparc
Date: 12/26/1996 16:11:52
>>>>> "Jason" == Jason Thorpe <thorpej@nas.nasa.gov> writes:
Jason> - bump "maxusers" in your kernel config file
Jason> - use sysctl(8) to increase kern.maxproc
Jason> For the per-process resource limit, use the getrlimit() and
Jason> setrlimit() library functions to alter the limits. You can
Jason> also change the limit in the shell before the http server
Jason> is exec'd.
The really wierd thing about using setrlimit(2) to increase the
number of processes is that the "current" value is system wide, but
the max can be per-process. So, some processes with higher maxproc can
fork() as a given user id, but other processes (such as those started
from cron) *can't* fork.
I haven't found a use for this "feature" yet.
:!mcr!: | Network security consulting and
Michael Richardson | contract programming
WWW: mcr@sandelman.ottawa.on.ca. PGP key available.