<div dir="ltr">What should be my next step ? Should i buy SAS Drive with hard-raid-10 ?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 16, 2013 at 12:34 PM, Sergey Kandaurov <span dir="ltr"><<a href="mailto:pluknet@nginx.com" target="_blank">pluknet@nginx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Jul 16, 2013, at 8:59 AM, shahzaib shahzaib <<a href="mailto:shahzaib.cb@gmail.com">shahzaib.cb@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> We're using nginx-1.2.8 to serve large static files for video streaming. However all nginx worker_processes are in "D" state and HDD I/O utilization is 99%.<br>
> […]<br>
</div><div class="im">> [root@DNTX010 ~]# iostat -x -d 3<br>
> Linux 2.6.32-358.6.2.el6.x86_64 (DNTX010.local) 07/16/2013 _x86_64_ (8 CPU)<br>
><br>
> Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util<br>
> sda 30.28 177.37 260.32 2.96 38169.26 1442.70 150.46 2.29 8.70 3.52 92.78<br>
><br>
> Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util<br>
> sda 4.33 0.00 544.00 0.00 34376.00 0.00 63.19 43.83 75.25 1.84 100.00<br>
><br>
> Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util<br>
> sda 9.00 6.33 547.67 0.67 34637.33 56.00 63.27 48.01 86.20 1.82 100.00<br>
><br>
> Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util<br>
> sda 0.00 0.67 568.00 2.33 36024.00 29.33 63.21 54.98 101.10 1.75 100.00<br>
><br>
> Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util<br>
> sda 0.00 4.33 560.33 1.33 35712.00 45.33 63.66 37.20 65.06 1.78 100.00<br>
><br>
<br>
<br>
</div>You are likely hitting the IOPS limit. 550r/s is quite enough to saturate<br>
4xSATA 7200 in RAID10. There are reads of 64 of something per request<br>
in average. I'd first look at what does something designated as "rsec/s"<br>
exactly mean in linux terms here.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sergey Kandaurov<br>
<a href="mailto:pluknet@nginx.com">pluknet@nginx.com</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>