Date: Tue, 19 Feb 2002 16:04:20 -0800 From: Luigi Rizzo <rizzo@icir.org> To: Sheldon Hearn <sheldonh@starjuice.net> Cc: Mike Silbersack <silby@FreeBSD.ORG>, 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> In-Reply-To: <15675.1014160079@axl.seasidesoftware.co.za> References: <200202190315.g1J3FSV14877@freefall.freebsd.org> <15675.1014160079@axl.seasidesoftware.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
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 ( <error condition> ) {
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020219160420.A33529>
