<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>the output of iotop<br>Total DISK READ: 15.67 M/s | Total DISK WRITE: 0.00 B/s<br><br>the output of vmstat 10 10<br>procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----<br>&nbsp;r&nbsp; b&nbsp;&nbsp; swpd&nbsp;&nbsp; free&nbsp;&nbsp; buff&nbsp; cache&nbsp;&nbsp; si&nbsp;&nbsp; so&nbsp;&nbsp;&nbsp; bi&nbsp;&nbsp;&nbsp; bo&nbsp;&nbsp; in&nbsp;&nbsp; cs us sy id wa<br>&nbsp;0&nbsp; 1&nbsp; 31736 3518240 486048 2719488&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 646&nbsp;&nbsp; 321&nbsp;&nbsp; 70&nbsp;&nbsp; 39&nbsp; 1&nbsp; 4 88&nbsp; 7<br>&nbsp;0&nbsp; 0&nbsp; 31736 3474616 489792 2763936&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0 10909&nbsp;&nbsp;&nbsp; 96 12010 2568&nbsp; 1&nbsp; 5 76 17<br>&nbsp;0&nbsp; 0&nbsp; 31736 3428900 492456 2797516&nbsp;&nbsp;&nbsp;
 0&nbsp;&nbsp;&nbsp; 0 11062&nbsp;&nbsp; 152 12099 2546&nbsp; 1&nbsp; 6 78 15<br>&nbsp;0&nbsp; 1&nbsp; 31736 3382620 494924 2833764&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0 12728&nbsp;&nbsp; 136 12709 2580&nbsp; 1&nbsp; 7 76 16<br>&nbsp;0&nbsp; 1&nbsp; 31696 3325956 497404 2872368&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp; 0 11678&nbsp;&nbsp; 244 12532 2571&nbsp; 2&nbsp; 6 77 15<br>&nbsp;0&nbsp; 0&nbsp; 31696 3288048 500144 2906464&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0&nbsp; 9947&nbsp;&nbsp; 178 12187 2539&nbsp; 1&nbsp; 6 80 13<br>&nbsp;0&nbsp; 1&nbsp; 31684 3250064 503244 2947148&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; 0 10628&nbsp;&nbsp; 166 12279 2613&nbsp; 1&nbsp; 7 78 15<br>&nbsp;0&nbsp; 0&nbsp; 31680 3180800 507244 2995880&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0 12200&nbsp;&nbsp; 186 12512 2680&nbsp; 1&nbsp; 7 73 19<br>&nbsp;0&nbsp; 0&nbsp; 31680 3126368 510364 3047976&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0 12083&nbsp;&nbsp; 149 12641 2738&nbsp; 2&nbsp;
 6 70 21<br>&nbsp;0&nbsp; 1&nbsp; 31680 3068704 513724 3093616&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0 11916&nbsp;&nbsp; 176 12648 2799&nbsp; 1&nbsp; 7 74 18<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dennis Jacobfeuerborn &lt;dennisml@conversis.de&gt;<br><b><span style="font-weight: bold;">To:</span></b> nginx@nginx.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, October 14, 2010 9:57:26 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: Image Hosting<br></font><br>Please re-run the vmstat as "vmstat 10 10". That should give a better <br>glimpse at what the system is doing.<br><br>On 10/14/2010 04:26 PM, Indo Php wrote:<br>&gt; Here's the output of "iostat -d 60 2"<br>&gt; Device: tps Blk_read/s
 Blk_wrtn/s Blk_read Blk_wrtn<br>&gt; sda 85.58 4947.94 2619.30 593632866 314252346<br>&gt;<br>&gt; Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn<br>&gt; sda 114.41 8395.93 339.01 503840 20344<br>&gt;<br>&gt; here's the output of vmstat<br>&gt; procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----<br>&gt; r b swpd free buff cache si so bi bo in cs us sy id wa<br>&gt; 0 1 332 63136 628344 6085040 0 0 617 324 17 27 1 4 88 6<br>&gt;<br>&gt; ---------------------------------------------------------------------------<br>&gt; *From:* Dennis Jacobfeuerborn &lt;<a ymailto="mailto:dennisml@conversis.de" href="mailto:dennisml@conversis.de">dennisml@conversis.de</a>&gt;<br>&gt; *To:* <a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>&gt; *Sent:* Thu, October 14, 2010 7:54:26 PM<br>&gt; *Subject:* Re: Image Hosting<br>&gt;<br>&gt; Ah, sorry I somehow didn't catch that last line with the actual HW
 setup.<br>&gt;<br>&gt; If my math skills don't fail me (and they very well might) the traffic and<br>&gt; image size data mean that you serve about 300 images per second.<br>&gt; Can you post a few lines of vmstat output and perhaps the output of "iostat<br>&gt; -d 60 2"?<br>&gt;<br>&gt; Also how are the hits distributed across the whole pool of images? Are<br>&gt; these hits truly random or are some images hit significantly more often<br>&gt; than others?<br>&gt;<br>&gt; More ram would obviously take some pressure off the disks if they are<br>&gt; really the problem.<br>&gt;<br>&gt; Regards,<br>&gt; Dennis<br>&gt;<br>&gt; On 10/14/2010 02:26 PM, <a ymailto="mailto:iptablez@yahoo.com" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a> &lt;mailto:<a ymailto="mailto:iptablez@yahoo.com" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a>&gt; wrote:<br>&gt;&nbsp; &gt; Actually the image size is arround 100KB each. The server is running in<br>&gt;
 250Mbps traffic.<br>&gt;&nbsp; &gt; I already described the disk I'm using is scsi 15K RPM in raid 0<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; Sent from my BlackBerry®<br>&gt;&nbsp; &gt; powered by Sinyal Kuat INDOSAT<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; -----Original Message-----<br>&gt;&nbsp; &gt; From: Dennis Jacobfeuerborn&lt;<a ymailto="mailto:dennisml@conversis.de" href="mailto:dennisml@conversis.de">dennisml@conversis.de</a><br>&gt; &lt;mailto:<a ymailto="mailto:dennisml@conversis.de" href="mailto:dennisml@conversis.de">dennisml@conversis.de</a>&gt;&gt;<br>&gt;&nbsp; &gt; Date: Thu, 14 Oct 2010 14:23:26<br>&gt;&nbsp; &gt; To:&lt;<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a> &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;&gt;<br>&gt;&nbsp; &gt; Reply-To: <a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
 &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;<br>&gt;&nbsp; &gt; Subject: Re: Image Hosting<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; But if those 5,000 req/s each hit a different 1mb image then you need to<br>&gt;&nbsp; &gt; read 5gb of data from you storage which if your storage is just a plain old<br>&gt;&nbsp; &gt; sata disk is going to be a huge problem.<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; Unfortunately Indo Php is not providing nearly enough information to give<br>&gt;&nbsp; &gt; any sort of advice. If he is lucky then putting lots of ram in the machine<br>&gt;&nbsp; &gt; for pagecache can help here if the cache hit ratio is good but if it is not<br>&gt;&nbsp; &gt; then he probably has to distribute the I/O across more spindles and go for<br>&gt;&nbsp; &gt; a raid with lots of disks.<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; Regards,<br>&gt;&nbsp; &gt; Dennis<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; On
 10/14/2010 10:33 AM, SplitIce wrote:<br>&gt;&nbsp; &gt;&gt; Hmm well talking from experience nginx can serve upwards of 5,000 req/s for<br>&gt;&nbsp; &gt;&gt; static files if configured right. Ill leave this for Igor or someone more<br>&gt;&nbsp; &gt;&gt; expericed to reply to.<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; On Thu, Oct 14, 2010 at 7:28 PM, Indo Php&lt;<a ymailto="mailto:iptablez@yahoo.com" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a><br>&gt; &lt;mailto:<a ymailto="mailto:iptablez@yahoo.com" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a>&gt;<br>&gt;&nbsp; &gt;&gt; &lt;mailto:<a ymailto="mailto:iptablez@yahoo.com" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a> &lt;mailto:<a ymailto="mailto:iptablez@yahoo.com" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a>&gt;&gt;&gt; wrote:<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; i tried to use AIO, but it seems my server is getting slower<br>&gt;&nbsp;
 &gt;&gt;<br>&gt;&nbsp; &gt;&gt; ---------------------------------------------------------------------------<br>&gt;&nbsp; &gt;&gt; *From:* SplitIce&lt;<a ymailto="mailto:mat999@gmail.com" href="mailto:mat999@gmail.com">mat999@gmail.com</a><br>&gt; &lt;mailto:<a ymailto="mailto:mat999@gmail.com" href="mailto:mat999@gmail.com">mat999@gmail.com</a>&gt;&lt;mailto:<a ymailto="mailto:mat999@gmail.com" href="mailto:mat999@gmail.com">mat999@gmail.com</a> &lt;mailto:<a ymailto="mailto:mat999@gmail.com" href="mailto:mat999@gmail.com">mat999@gmail.com</a>&gt;&gt;&gt;<br>&gt;&nbsp; &gt;&gt; *To:* <a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a> &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;&lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>&gt; &lt;mailto:<a ymailto="mailto:nginx@nginx.org"
 href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;&gt;<br>&gt;&nbsp; &gt;&gt; *Sent:* Thu, October 14, 2010 2:47:55 PM<br>&gt;&nbsp; &gt;&gt; *Subject:* Re: Image Hosting<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; Try any of these:<br>&gt;&nbsp; &gt;&gt; 1) Compile nginx with AIO support<br>&gt;&nbsp; &gt;&gt; 2) Try directio option<br>&gt;&nbsp; &gt;&gt; 3) Try sendfile option<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; On Thu, Oct 14, 2010 at 6:36 PM, Indo Php&lt;<a ymailto="mailto:iptablez@yahoo.com" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a><br>&gt; &lt;mailto:<a ymailto="mailto:iptablez@yahoo.com" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a>&gt;<br>&gt;&nbsp; &gt;&gt; &lt;mailto:<a ymailto="mailto:iptablez@yahoo.com" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a> &lt;mailto:<a ymailto="mailto:iptablez@yahoo.com" href="mailto:iptablez@yahoo.com">iptablez@yahoo.com</a>&gt;&gt;&gt; wrote:<br>&gt;&nbsp;
 &gt;&gt;<br>&gt;&nbsp; &gt;&gt; hi there,<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; we have an image hosting, and of course we're using Nginx!<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; Now on we're having problem with disk i/o. With 200GB of images.<br>&gt;&nbsp; &gt;&gt; Is there any recommendation for this matter? Nginx configuration or<br>&gt;&nbsp; &gt;&gt; Hardware/other software configuration?<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; We already used Dual Quad Core 3Ghz, 8 GB RAM, 6x73GB 15k SCSI server<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; _______________________________________________<br>&gt;&nbsp; &gt;&gt; nginx mailing list<br>&gt;&nbsp; &gt;&gt; <a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a> &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;&lt;mailto:<a
 ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>&gt; &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;&gt;<br>&gt;&gt; &gt; <a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; _______________________________________________<br>&gt;&nbsp; &gt;&gt; nginx mailing list<br>&gt;&nbsp; &gt;&gt; <a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a> &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;&lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>&gt; &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;&gt;<br>&gt;&nbsp;
 &gt;&gt; <a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; --<br>&gt;&gt; &gt; Warez Scene&lt;<a href="http://thewarezscene.org" target="_blank">http://thewarezscene.org</a>&gt; Free Rapidshare Downloads<br>&gt;&gt; &gt; &lt;<a href="http://www.nexusddl.com" target="_blank">http://www.nexusddl.com</a>&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt;<br>&gt;&nbsp; &gt;&gt; _______________________________________________<br>&gt;&nbsp; &gt;&gt; nginx mailing list<br>&gt;&nbsp; &gt;&gt; <a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a> &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;<br>&gt;&nbsp; &gt;&gt; <a href="http://nginx.org/mailman/listinfo/nginx"
 target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; _______________________________________________<br>&gt;&nbsp; &gt; nginx mailing list<br>&gt;&nbsp; &gt; <a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a> &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;<br>&gt;&nbsp; &gt; <a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>&gt;&nbsp; &gt; _______________________________________________<br>&gt;&nbsp; &gt; nginx mailing list<br>&gt;&nbsp; &gt; <a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a> &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;<br>&gt;&nbsp; &gt; <a href="http://nginx.org/mailman/listinfo/nginx"
 target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; nginx mailing list<br>&gt; <a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a> &lt;mailto:<a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;<br>&gt; <a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; nginx mailing list<br>&gt; <a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>&gt; <a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br><br><br>_______________________________________________<br>nginx mailing list<br><a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br><a
 href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br></div></div>
</div><br>







      </body></html>