httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@covalent.net>
Subject Re: cvs commit: httpd-2.0/server/mpm/worker worker.c
Date Wed, 19 Sep 2001 20:40:39 GMT
On Wednesday 19 September 2001 01:21 pm, Greg Ames wrote:
> Aaron Bannert wrote:
> > 2) How long should the queue be? Should we just set some arbitrary
> > constant, defined in mpm_default.h, or should we come up with some
> > heuristic?
>
> Ideally, you would have 0 connections on the queue most of the time.
> Then, just before some worker gets done with its last connection, 1 new
> connection briefly appears in the queue.  That gives you the minimum
> latency without a lot of blocking & unblocking overhead.  Of course you
> can't control the incoming connection rate in the real world, but you
> can control the number of threads which are actively trying to consume
> from the queue.
>
> For now, ThreadsPerChild might be fine.  I'd feel a little better about
> some small constant, like 5 or 10.  But the code does need to learn to
> deal with "queue full" more gracefully.

Guys, please take a look at the archives.  Manoj did these tests over a year
ago.  ThreadsPerChild is the optimal value.  We have run the numbers once
already.

Ryan
______________________________________________________________
Ryan Bloom				rbb@apache.org
Covalent Technologies			rbb@covalent.net
--------------------------------------------------------------

Mime
View raw message