Date: Thu, 03 Apr 1997 15:54:17 -0800 From: David Greenman <dg@root.com> To: Bakul Shah <bakul@torrentnet.com> Cc: Guido van Rooij <guido@gvr.win.tue.nl>, FreeBSD-hackers@freebsd.org (FreeBSD-hackers) Subject: Re: apache like preforking apps and high loads Message-ID: <199704032354.PAA05634@root.com> In-Reply-To: Your message of "Thu, 03 Apr 1997 11:53:34 EST." <199704031653.LAA20772@chai.plexuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>> >When looking at Apacha like applications, one often sees extermely high >> >load averages. Apache preforks a number of processes that all block >> >on accept(). When a request comes in, all process are woken up and the >> >scheduler chooses one of the now runnable processes taht will succeed in >> >the accept(). The other go back to sleep. >> >> Not any more. I changed this a few days ago. Now only one process is >> woken up. > >Fairness is probably not an issue when an app. consists of a number >of anonymous servers but in general one would want to make sure that >if N processes are waiting on accept() on the same socket, no one >process is starved of accepting. How do you ensure that? The processes blocked on accept are handled in a round-robin fashion, oldest first. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704032354.PAA05634>