public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Why is deleting (or reading) files not counted as IO-Wait in top?
@ 2008-01-02 19:35 Matthias Schniedermeyer
  2008-01-03  0:16 ` Maxim Levitsky
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Matthias Schniedermeyer @ 2008-01-02 19:35 UTC (permalink / raw)
  To: linux-kernel

Hi


Currently i'm deleting about 500.000 files on a XFS-filesystem which 
takes a few minutes, as i had a top open i saw that 'wa' is shown as 
0.0% (Nothing else running currently) and everything except 'id' is near 
the bottom too. Kernel is 2.6.23.11.

So, as 'rm -rf' is essentially a IO (or seek, to be more correct)-bound 
task, shouldn't that count as "Waiting for IO"?

The man-page of top says:
'Amount of time the CPU has been waiting for I/O to complete.'

But AFAICT wa only seams to be (ac)counted for writing and not for 
reading. I come to that conclusion because, when i fire 'sync' i can see 
some percent wa for a few seconds.




Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-01-14  6:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-02 19:35 Why is deleting (or reading) files not counted as IO-Wait in top? Matthias Schniedermeyer
2008-01-03  0:16 ` Maxim Levitsky
2008-01-03  8:25   ` Matthias Schniedermeyer
2008-01-05  9:31 ` Andrew Morton
2008-01-05 16:58   ` Matthias Schniedermeyer
2008-01-14  6:24 ` David Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox