public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Matthias Schniedermeyer <ms@citd.de>
Cc: linux-kernel@vger.kernel.org, David Chinner <dgc@sgi.com>,
	Timothy Shimmin <tes@sgi.com>
Subject: Re: Why is deleting (or reading) files not counted as IO-Wait in top?
Date: Sat, 5 Jan 2008 01:31:15 -0800	[thread overview]
Message-ID: <20080105013115.217a5ab1.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080102193503.GA31414@citd.de>

On Wed, 2 Jan 2008 20:35:03 +0100 Matthias Schniedermeyer <ms@citd.de> wrote:

> 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.
> 

Yes, you would absolutely expect `rm' to be stuck in D state and
contributing to both load average and io-wait in this situation.

I'd think that either XFS is playing games (and it'd take some pretty
inventive games to do this) or your observations are in error.

  parent reply	other threads:[~2008-01-05  9:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2008-01-05 16:58   ` Matthias Schniedermeyer
2008-01-14  6:24 ` David Chinner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080105013115.217a5ab1.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=dgc@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ms@citd.de \
    --cc=tes@sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox