Very high IOWait during all disk activity



(Please cc me on replies)

I recently noticed on a number of my Linux boxes that during disk
activity, CPU usage was consistently hitting 100%. A little digging
showed that the CPU was spending up to around 65% of its time in an
IOWait state. Checked this with kernels 2.6.22 and 2.6.25-rc3, and
also across SATA and PATA drives on three different machines, all with
the same results. I also checked back with an old Ubuntu 6.06 Live CD
and that also exhibits the problem.

Having done some digging on the net, I can't get a definitive answer
as to whether this is considered "normal". Some people suggest that
IOWait is informational and doesn't indicate a problem, but based on
my admittedly limited understanding of such things, the CPU shouldn't
need to spend much time on disk I/O these days due to the use of DMA.

Is it expected behaviour for the CPU to spend such a large amount of
time in the IOWait state during disk I/O?

(For anyone who wants to see a more detailed analysis, I have an open
bug on Ubuntu's Launchpad: https://bugs.launchpad.net/bugs/192353).

Cheers,

Gordon.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Windows XP slows to a standstill
    ... "Gerry Cornell" wrote: ... the CPU usage maxed out. ... I can now type and open files and programmes which is a vast improvement. ... I've got 6 gig free on the disk drive so it should be OK. ...
    (microsoft.public.windowsxp.general)
  • Re: SuSE 10.0 boot problems with CPU changed
    ... disk from an Athlon XP based machine to a Pentium III. ... needing to somehow change a config file for the CPU or something. ... for the floppy drive, the Adaptec 29160 SCSI adapter, the IBM SCSI hard ... Back when I was a schoolkid, I had an old Zoltrix 14.4k external modem ...
    (comp.os.linux.misc)
  • Re: Relationship between load average and CPU busy or CPU idle
    ... > Is there some kind of relationship between the load average figure and CPU ... Because Unix expects disk I/O to finish really soon ... idle time is computed by looking at what the processors are ...
    (comp.unix.solaris)
  • Re: What can I check to fix system performance?
    ... it seems you have plenty of memory available: ... copies of files you have read of written lately, in a cache, in case ... processes per CPU, or 40 in all. ... Consider the disk structure. ...
    (comp.os.linux.setup)
  • Re: 10g RAC: max performance & min cost with miSCSI?
    ... :-) Due to reliability and minimun downtime requirements we are planning to build a 2 node Linux Oracle 10g RAC. ... To minimize the cost we are planning to run the nodes 1 CPU each since Oracle lisences are per CPU. ... The bottleneck seems almost always be on the disk system so starting the design on disk system seems the right way to go. ... Since we have 2 CPUs on RAC the disk system should be able to deliver 400 MB/s, let's say 500 MB/s to be safe. ...
    (comp.databases.oracle.server)