slow streaming due to high %utilization !!

shahzaib shahzaib shahzaib.cb at gmail.com
Wed Jun 5 05:56:53 UTC 2013


Hello,

       We're using nginx-1.2.8 to stream large files size 1G but found the
slow stream with high utilization of harddrive using command "iostat -x -d
3"

      Device:         rrqm/s   wrqm/s     r/s     w/s   rsec/s   wsec/s
avgrq-sz avgqu-sz   await  svctm  %util
      sdc               0.00   444.00   78.67    7.00 18336.00  3608.00
256.16     3.28   39.17  11.02  94.40
      sdb               0.00     0.00    0.00    0.00     0.00     0.00
0.00     0.00    0.00   0.00   0.00
      sda               0.00     0.00    0.00    0.00     0.00     0.00
0.00     0.00    0.00   0.00   0.00

16G Ram
8X CPU E31240
HDD SATA

Following are the main nginx configuration :-

http {
    include       mime.types;
    default_type  application/octet-stream;
    #tcp_nopush     on;
    client_body_buffer_size 128k;
    client_header_buffer_size 128k;
    client_max_body_size 1200M;
    keepalive_timeout  10;
    ignore_invalid_headers on;
    client_header_timeout  3m;
    client_body_timeout 3m;
    send_timeout     3m;
    reset_timedout_connection on;
    #gzip  on;
    access_log off;
    include /usr/local/nginx/conf/vhosts/*;

}


Would be very thankful If someone could help me with better configuration
of nginx to reduce HDD-utilization.

Best Regards..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130605/be8befaa/attachment.html>


More information about the nginx mailing list