Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Apr 1997 11:11:31 +0100
From:      James Mansion <james@wgold.demon.co.uk>
To:        FreeBSD-hackers@freebsd.org
Subject:   Re: apache like preforking apps and high loads
Message-ID:  <3344D3D3.618A@wgold.demon.co.uk>
References:  <199704031653.LAA20772@chai.plexuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bakul Shah wrote:
> 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?
> 

Why would you necessarily want this, apart from aesthetics?

I don't think this behaviour is mandated anywhere.

In any case, presumably (hopefully) the wakeup goes to the
process with the highest scheduling priority.  If the scheduler
does dynamic adjustment based on CPU time consumed 'recently' then
waiters will be favoured over processes that ran recently, and you'll
get th eeffect that you want.

James



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3344D3D3.618A>