Thread support in Nginx

Is there any plan to fix thread support in Nginx ? Are there significant
drawbacks in running multiple threads in each Nginx process ?

Posted at Nginx Forum:

On Tue, Oct 5, 2010 at 20:31, cachenewbie [email protected] wrote:

Is there any plan to fix thread support in Nginx ? Are there significant
drawbacks in running multiple threads in each Nginx process ?
And why do you need it?


Boris D…

I was thinking that the in-memory buffer cache can be shared by multiple
threads (can’t be done by multiple processes without shared memory and
shared memory isn’t good for performance) serving different
clients/requests instead of multiple processes sharing the file cache -
basically to help having two levels of cache - one in-memory and one
file-cache served by multi-threaded multi-process nginx system making
the best use multi-core processors.

Posted at Nginx Forum:

On Tue, Oct 5, 2010 at 22:14, cachenewbie [email protected] wrote:

I was thinking that the in-memory buffer cache can be shared by multiple
threads (can’t be done by multiple processes without shared memory and
shared memory isn’t good for performance) serving different
clients/requests instead of multiple processes sharing the file cache -
basically to help having two levels of cache - one in-memory and one
file-cache served by multi-threaded multi-process nginx system making
the best use multi-core processors.
File cache is equal to memory cache (because of system pagecache) in
modern operating systems, so, I don’t think, that it is really needed.


Boris D…