public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 2.6.9-rc2 1/2] enhanced I/O accounting data collection
@ 2004-09-28 15:21 Jens Axboe
  2004-09-29 23:01 ` Jay Lan
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Axboe @ 2004-09-28 15:21 UTC (permalink / raw)
  To: Jay Lan, Linux Kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH 2.6.9-rc2 0/2] enhanced accounting data collection
@ 2004-09-27 22:34 Jay Lan
  2004-09-27 22:44 ` [PATCH 2.6.9-rc2 1/2] enhanced I/O " Jay Lan
  0 siblings, 1 reply; 3+ messages in thread
From: Jay Lan @ 2004-09-27 22:34 UTC (permalink / raw)
  To: LKML
  Cc: lse-tech, CSA-ML, Andrew Morton, Guillaume Thouvenin,
	Tim Schmielau, Arthur Corliss

This is an effort of providing an enhanced accounting data collection.

It is intended to offer common data collection method for various
accounting packages including BSD accouting, ELSA, CSA, and any other
acct packages that favor a common layer of data collection, separated
from data presentation layer and management of process groups layer.

This patchset consists of two parts: acct_io and acct_mm as we
identified useful spots for improved data collection in the area
of IO and MM.

This patchset is to replace the previously submitted CSA patchset
of four. The CSA kernel module is a standalone module. The csa_eop
patch was to provide a hook for end-of-process handling and that
can be considered separately unless there is enough common interest.

Now that the patchset is down to IO and MM, i hope it is more
appealing :)

Comments?

Best Regards,
  - jay
---
Jay Lan - Linux System Software
Silicon Graphics Inc., Mountain View, CA


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

end of thread, other threads:[~2004-09-29 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-28 15:21 [PATCH 2.6.9-rc2 1/2] enhanced I/O accounting data collection Jens Axboe
2004-09-29 23:01 ` 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

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