Welcome! Log In Create A New Profile

Advanced

Re: Problem with large static files

Brian Akins
December 21, 2011 10:08AM
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).

--Brian
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problem with large static files

etrader December 19, 2011 01:22PM

Re: Problem with large static files

Maxim Dounin December 19, 2011 03:46PM

Re: Problem with large static files

etrader December 20, 2011 01:01AM

Re: Problem with large static files

Brian Akins December 21, 2011 10:08AM

Re: Problem with large static files

etrader December 26, 2011 03:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 244
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready