From owner-cvs-all Tue Feb 19 16: 4:32 2002 Delivered-To: cvs-all@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 2B7D237B404; Tue, 19 Feb 2002 16:04:28 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g1K04KJ33545; Tue, 19 Feb 2002 16:04:20 -0800 (PST) (envelope-from rizzo) Date: Tue, 19 Feb 2002 16:04:20 -0800 From: Luigi Rizzo To: Sheldon Hearn Cc: Mike Silbersack , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern kern_fork.c Message-ID: <20020219160420.A33529@iguana.icir.org> References: <200202190315.g1J3FSV14877@freefall.freebsd.org> <15675.1014160079@axl.seasidesoftware.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15675.1014160079@axl.seasidesoftware.co.za> User-Agent: Mutt/1.3.23i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 20, 2002 at 01:07:59AM +0200, Sheldon Hearn wrote: > > > On Mon, 18 Feb 2002 19:15:28 PST, Mike Silbersack wrote: > > > Log: > > A few misc forkbomb defenses: > > > > - Remove the printing of "proc: table full". When the table > > really is full, this would flood the screen/logs, making > > the problem tougher to deal with. > > I like the idea that my console won't be filled with crap, but what clue > will I get now that kern.maxfiles needs to be bumped? for the mbuf allocator i did these rate-limited (once per second). Maybe you could do the same there. Something like this: if ( ) { static int last_report ; /* when we did that (in ticks) */ if (ticks < last_report || (ticks - last_report) >= hz) { last_report = ticks; printf( < error message > ); } } cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message