httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akins, Brian" <>
Subject Re: Httpd 3.0 or something else
Date Tue, 10 Nov 2009 22:30:34 GMT
On 11/10/09 1:56 PM, "Greg Stein" <> wrote:

> But some buckets might be performing gzip or SSL encryption. That
> consumes CPU within the network thread.

You could just run x times CPU cores number of "network" threads.  You can't
use more than 100% of a CPU anyway.

The model that some of us discussed -- Greg, you may have invented it ;) --
was to have a small pool of acceptor threads (maybe just one) and a pool of
"worker" threads. The acceptor threads accept connections and move them into
worker threads - that's it.  A single fd is then entirely owned by that
worker thread until it (the fd) goes away - network/disk io, gzip, ssl, etc.

Brian Akins

View raw message