Does Nginx block on file IO?

jjjx128 nginx-forum at nginx.us
Mon May 2 15:25:54 MSD 2011


jjjx128 Wrote:
-------------------------------------------------------
> And if you are not serving 100 megabytes
> of data to 500 clients but a lot more you are most
> likely to get better results with asynchronous
> server even with blocking file I/O.

Sorry, bad example, in this case your data will fit in file system cache
and you still will be better off with nginx bacuase of all the context
switches you save. Anyway there might be some very special case where
disks are overloaded and access patterns are truly random. Although this
never happens in real world.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,194884,194941#msg-194941




More information about the nginx mailing list