public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Zlatko Calusic <zlatko.calusic@iskon.hr>
Cc: linux-kernel@vger.kernel.org,
	"Stephen C. Tweedie" <sct@redhat.com>, Jens Axboe <axboe@suse.de>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: Re: sard/iostat disk I/O statistics/accounting for 2.5.8-pre3
Date: Thu, 11 Apr 2002 15:02:19 +0100	[thread overview]
Message-ID: <20020411150219.A10486@infradead.org> (raw)
In-Reply-To: <dnu1qia3zg.fsf@magla.zg.iskon.hr>

On Thu, Apr 11, 2002 at 01:06:59PM +0200, Zlatko Calusic wrote:
> I had to make some changes, as kernel internals have changed since the
> time patch was originally written. Alan has also included this patch
> in his 2.4.x-ac kernel series, but it is not working well.

Oh, it's also in 2.4.19-pre6 and works pretty well..

> First problem is that somehow, misteriously, ios_in_flight variable
> drops to value of -1 when disks are idle. Of course, this skews lots
> of other numbers and iostat reports garbage. I tried to find the cause
> of this behaviour, but failed (looks like we have a request fired on
> each disk, whose start is never accounted but completion is?!). So I
> resolved it this way
> 
> if (hd->ios_in_flight)
>                --hd->ios_in_flight;
> 
> which works well, but I would still love to know how number of I/Os
> can drop below zero. :)

I'm unable to reproduce it here - I only have idle partition though..

> Second problem/nuisance is that blk_partition_remap() destroys
> partition information from the bio->bi_dev before the request is
> queued. That's why -ac kernel doesn't report per-partition
> information.

Bullocks.  2.4 doesn't even have blk_partition_remap, but the individual
drivers do the partition remapping themselves.  I wouldn't have submitted
sard for 2.4 inclusion if there would be such a bug.

	Christoph


  reply	other threads:[~2002-04-11 14:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-11 11:06 sard/iostat disk I/O statistics/accounting for 2.5.8-pre3 Zlatko Calusic
2002-04-11 14:02 ` Christoph Hellwig [this message]
2002-04-11 17:20   ` Zlatko Calusic
2002-04-11 21:09     ` Mike Fedyk
2002-04-11 23:06       ` Zlatko Calusic
2002-04-12 10:28         ` Jochen Suckfuell
2002-04-12  2:23 ` Don Dupuis
2002-04-14 19:06   ` Zlatko Calusic
  -- strict thread matches above, loose matches on Subject: below --
2002-04-25 11:51 Thomas Tonino

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=20020411150219.A10486@infradead.org \
    --to=hch@infradead.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sct@redhat.com \
    --cc=zlatko.calusic@iskon.hr \
    /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