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:
http://forum.nginx.org/read.php?2,137471,137471#msg-137471

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:
http://forum.nginx.org/read.php?2,137471,137497#msg-137497

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…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs