nginx support multithread

Brian Akins brian at akins.org
Thu Oct 27 11:06:29 UTC 2011


On Oct 27, 2011, at 3:41 AM, agentzh wrote:
>> 
>> What would be the usage of multi-threads?
>> 
> 
> Mostly for (blocking) disk I/O and other syscalls that have to block
> the main thread of an nginx worker :)
> 

True.  I've seen some systems where the overhead of the thread/queue management was more than just letting the system call block the main thread.  We generally run 2 nginx procs per CPU core.

I just worry about bloat. There is a reason nginx's market share is rising and Apache's is falling.

--Brian





More information about the nginx mailing list