Problem with large static files

Brian Akins brian at
Wed Dec 21 15:07:46 UTC 2011

On Dec 20, 2011, at 1:01 AM, etrader wrote:

> Actually, I suspected the nature of 0.000 request time; but what makes
> me wonder is that it takes only 3ms to process a relatively php file
> with output of 5KB. Then, why reading a static file of 15KB should take
> 600ms?

It depends on the speed of your disk, filesystem, etc.  Is this local disk or something like NFS? Is this a physical machine or a vm? How many workers are you running?  We generally run 2 per cpu core -- that does "worse" than 1 per core in benchmarking, but seems to work better in actual production use because of various places nginx may block (on Linux).


More information about the nginx mailing list