From owner-freebsd-hackers Thu Jul 13 22:34: 3 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail1.rdc1.sfba.home.com (mail1.rdc1.sfba.home.com [24.0.0.74]) by hub.freebsd.org (Postfix) with ESMTP id 620E937BF45 for ; Thu, 13 Jul 2000 22:34:00 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from beastie.localdomain ([24.19.158.41]) by mail1.rdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20000714053355.CPVR28364.mail1.rdc1.sfba.home.com@beastie.localdomain>; Thu, 13 Jul 2000 22:33:55 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id WAA14762; Thu, 13 Jul 2000 22:44:45 -0700 (PDT) (envelope-from brian) Date: Thu, 13 Jul 2000 22:44:45 -0700 From: "Brian O'Shea" To: clefevre@citeweb.net Cc: Narvi , core-ix@hushmail.com, freebsd-hackers@FreeBSD.ORG Subject: Re: Some proposals to FreeBSD kernel Message-ID: <20000713224445.S351@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: clefevre@citeweb.net, Narvi , core-ix@hushmail.com, freebsd-hackers@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Cyrille Lefevre on Mon, Jul 10, 2000 at 10:55:05PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message