On Mon, Jul 10, 2000 at 10:55:05PM +0200, Cyrille Lefevre wrote:
> ... an idea would be to add some limit to limit the number of processes
> forked by a process (at one time in addition to the number of processes
> by user which may be relative to the system wide limit
> (maxprocperproc=nproc-10)...

Actually this wouldn't solve your problem since the processes created
are not all children of the first process that you start.  Every child
process also executes fork() in a loop, so when one reaches its per-
process limit, all of its children will also be able to create up to
their limit of child processes, each child of which will do the same,
ad infinitum (well, until maxproc is reached and you can't create any
more processes and your system is wedged again).  The kern.maxprocperuid
sysctl addresses this problem better.

-brian

-- 
Brian O'Shea
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to