On 11/10/09 1:56 PM, "Greg Stein" <gst...@gmail.com> 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