<p>I've been trying to trace down why I have 100% iowait on my box. If I do something like a mysql select query, system goes to 100% iowait (on more than one cpu on my server,) which kills my watchdogs and sometimes kills httpd itself. </p>

<p>In vmstat I see that every 8 seconds or so, there's a 5MB disk write. And that causes at least one cpu (out of 4) to be blocking for one or two seconds. </p>

<p>I have to say that there are a few million files in my ext3 (and I tried ext2, and I have no atime and no journaling enabled.) There is a hardware raid, mirroring two 300GB ides.</p>

<p>I'm missing dtrace. Is there any way to find out what causes these writes? and how do I speed my filesystem up? </p>

<p>Ideas are welcome!</p>

<p>Thank you!</p>

OK, possible diagnosis steps (for posterity):
Have you confirmed that you're not actually running out of virtual memory and therefore swapping processes out to disk?
If it's not the kernel swapping, you may be able to use
```
strace
```
(as you don't have
```
dtrace
```
) to prove whether it's MySQL doing the writes
Can you please provide more details of the hardware and O/S configuration?