From: Jens Axboe <axboe@suse.de>
To: Jay Lan <jlan@engr.sgi.com>, Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2.6.9-rc2 1/2] enhanced I/O accounting data collection
Date: Tue, 28 Sep 2004 17:21:23 +0200 [thread overview]
Message-ID: <20040928152123.GD2385@suse.de> (raw)
Hi,
> Index: linux/drivers/block/ll_rw_blk.c
> ===================================================================
> --- linux.orig/drivers/block/ll_rw_blk.c 2004-09-12 22:31:31.000000000 -0700
> +++ linux/drivers/block/ll_rw_blk.c 2004-09-27 12:37:04.374234677 -0700
> @@ -1741,6 +1741,7 @@
> {
> DEFINE_WAIT(wait);
> struct request *rq;
>+ unsigned long start_wait = jiffies;
>
> generic_unplug_device(q);
> do {
>@@ -1769,6 +1770,7 @@
> finish_wait(&rl->wait[rw], &wait);
> } while (!rq);
>
>+ current->bwtime += (unsigned long) jiffies - start_wait;
> return rq;
> }
What is the purpose of this hunk alone as block io accounting? It
doesn't make any sense to me - you are accounting the time a process
spends sleeping on a congested queue, it has nothing to do with the
bandwidth time it used. Which, btw, isn't so easy to account on queueing
hardware.
Just curious on what you are trying to achieve here.
--
Jens Axboe
next reply other threads:[~2004-09-28 15:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-28 15:21 Jens Axboe [this message]
2004-09-29 23:01 ` [PATCH 2.6.9-rc2 1/2] enhanced I/O accounting data collection Jay Lan
-- strict thread matches above, loose matches on Subject: below --
2004-09-27 22:34 [PATCH 2.6.9-rc2 0/2] enhanced " Jay Lan
2004-09-27 22:44 ` [PATCH 2.6.9-rc2 1/2] enhanced I/O " Jay Lan
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=20040928152123.GD2385@suse.de \
--to=axboe@suse.de \
--cc=jlan@engr.sgi.com \
--cc=linux-kernel@vger.kernel.org \
/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