very poor performance for serving static files

Maxim Dounin mdounin at mdounin.ru
Tue Jul 19 09:06:31 UTC 2011


Hello!

On Tue, Jul 19, 2011 at 03:39:00AM -0400, asdasd77 wrote:

[...]

> i am looking the server simultaneously with "top -c -d 1", here is the
> output
> **************************************************************************************************
> [root at srv-46 ~]# top -c -d 1
> top - 12:33:04 up 13 min,  1 user,  load average: 13.82, 10.34, 5.30
> Tasks: 158 total,  17 running, 137 sleeping,   0 stopped,   4 zombie
> Cpu(s):  1.9%us, 45.7%sy,  0.0%ni, 11.4%id, 37.1%wa,  0.0%hi,  3.8%si, 
> 0.0%st

System cpu usage looks really high...

> Mem:  12299044k total,  8913512k used,  3385532k free,    33100k
> buffers
> Swap:  6094840k total,        0k used,  6094840k free,  5757568k cached
> 
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>  3180 root      20  -5     0    0    0 R  5.6  0.0   0:53.27 [vmmemctl]

... and it looks you are running in virtualized environment.  This 
may be a curlpit (see e.g. [1]).  Try taking virtualization out of 
the picture.

[1] http://blog.boxedice.com/2011/06/15/mongodb-cpu-cores-and-vmmemctl/

Maxim Dounin



More information about the nginx mailing list