<div>I'm using CentOS release 5.5 (Final)</div>
<div>nginx-0.9.3</div>
<div>remi yum rpms for php-fpm, php, and php-apc</div>
<div> </div>
<div>My php-fpm setting are near default except for spawn child numbers.</div>
<div> </div>
<div>The server is used for no other purpose other than niginx + php-fpm and gets about 2 millions hits on a very heavy duty php script per day.</div>
<div>(DB server is seperate)</div>
<div> </div>
<div>iostat shows</div>
<div>Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util<br>sda 0.00 107.40 0.00 175.80 0.00 2268.80 12.91 110.18 632.36 5.69 100.04<br>....</div>
<div>sda5 0.00 104.60 0.00 174.40 0.00 2233.60 12.81 109.25 631.62 5.74 100.04<br>...</div>
<div>sdb 0.00 85.40 0.00 2.20 0.00 700.80 318.55 0.01 3.18 0.82 0.18<br>sdb1 0.00 85.40 0.00 2.20 0.00 700.80 318.55 0.01 3.18 0.82 0.18</div>
<div> </div>
<div>sdb is the hard drive with the web files and sda5 is /tmp</div>
<div> </div>
<div>ls -alh /tmp<br>total 40K<br>drwxrwxrwt 5 root root 4.0K Feb 18 00:21 .<br>drwxr-xr-x 24 root root 4.0K Feb 15 02:27 ..<br>drwxrwxrwt 2 root root 4.0K Jan 18 01:58 .font-unix<br>drwxrwxrwt 2 root root 4.0K Jan 18 01:58 .ICE-unix<br>
drwx------ 2 root root 16K Aug 26 2009 lost+found</div>
<div> </div>
<div>If nginx is stopped the load on sda5 goes away.</div>
<div> </div>
<div>Is there any reason /tmp should have such a heavy write load without any files in it?</div>
<div> </div>
<div>nginx virtual host conf</div>
<div>location ~ \.(php|html|htm)$ {<br> proxy_read_timeout 180;<br> proxy_connect_timeout 120;<br> proxy_send_timeout 180;<br> proxy_buffers 32 4k;<br> proxy_max_temp_file_size 0;</div>
<div> fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;<br> fastcgi_index index.php;<br> fastcgi_param SCRIPT_FILENAME /[DELETED MY HOME]$fastcgi_script_name;<br> include /usr/local/nginx/conf/fastcgi_params;<br>
}<br></div>
<div>fastcgi_params</div>
<div>default values with the following</div>
<div>fastcgi_connect_timeout 60;<br>fastcgi_send_timeout 180;<br>fastcgi_read_timeout 180;<br>fastcgi_buffer_size 128k;<br>fastcgi_buffers 4 256k;<br>fastcgi_busy_buffers_size 256k;<br>fastcgi_temp_file_write_size 256k;<br>
fastcgi_intercept_errors on;</div>
<div>fastcgi_max_temp_file_size 0;</div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<div>My question was :
<div>Is there any reason /tmp should have such a heavy write load without any files in it?</div></div>