<div dir="ltr"><div><div>Hello,<br><br></div>         I followed this post <a href="http://stackoverflow.com/questions/11250798/best-file-system-for-serving-1gb-files-using-nginx-under-moderate-write-read-p">http://stackoverflow.com/questions/11250798/best-file-system-for-serving-1gb-files-using-nginx-under-moderate-write-read-p</a>  to optimize nginx for large static files i.e (flv,mp4) and enabled aio on nginx config which you can see below, and after enabling aio, directio, and output_buffers, i could notice(iostat -x -d 3) that cpu util% got higher from 10.00 to 35.00 and svctime got reduced to 1.00 from 4.00. So i came to the conclusion that after enabling these directives , the i/o util% starts getting higher and svctime start getting reduced. <br>
<br>1.Can someone guide me if aio directive helps improving nginx flv stream, if yes than why it is utilizing too much hard-disk?  <br></div>2. Reducing the svctime(iostat -x -d 3) for i/o is a good thing or not ?<br><div>
<div><div><div><br><br>http {<br>    include       mime.types;<br>    default_type  application/octet-stream;<br>    client_body_buffer_size 128K;<br>    sendfile_max_chunk 128k;<br>    access_log off;<br>    sendfile        off;<br>
    client_header_timeout  3m;<br>    client_body_timeout 3m;<br><br>server {<br>        listen  80;<br>        server_name  <a href="http://domain.com">domain.com</a>;<br>        client_max_body_size 800m;<br>        limit_rate 100k;<br>
    <br><br>        location / {<br>            root   /var/www/html/content;<br>            index index.html index.htm index.php;<br>     <br>}<br>location ~ \.(flv|jpeg|jpg)$ {<br>                flv;<br>                root /var/www/html/content;<br>
                aio on;<br>                directio 512;<br>                output_buffers 1 8m;<br>                expires 15d;<br>                valid_referers none blocked <a href="http://domain.com">domain.com</a>;<br>
                if ($invalid_referer) {<br>                    return   403;<br>                }<br>                }<br><br><br></div><div>Best Regards.<br></div></div></div></div></div>