1 Sep 2004 01:01
Re: [Lse-tech] Re: [PATCH] new CSA patchset for 2.6.8
Jay Lan <jlan <at> engr.sgi.com>
2004-08-31 23:01:02 GMT
2004-08-31 23:01:02 GMT
Adding csa <at> oss.sgi.com, the CSA user group mailing list, to Cc.
Tim Schmielau wrote:
> On Mon, 30 Aug 2004, Guillaume Thouvenin wrote:
>
>
>> Thus, to be clear, the enhanced accounting can be divided into
>>three parts:
>>
>> 1) A common data collection method in the kernel.
>> We could start from BSD-accounting and add CSA information. Could
>> it be something like BSD version4?
>
>
> I've had a quick look at the CSA data collection patches. To get the
> discussion started, here are my comments:
>
>
>>--- linux.orig/drivers/block/ll_rw_blk.c 2004-08-13 22:36:16.000000000 -0700
>>+++ linux/drivers/block/ll_rw_blk.c 2004-08-18 12:07:10.000000000 -0700
>> <at> <at> -1948,10 +1950,12 <at> <at>
>>
>> if (rw == READ) {
>> disk_stat_add(rq->rq_disk, read_sectors, nr_sectors);
>>+ current->rblk += nr_sectors;
>> if (!new_io)
>> disk_stat_inc(rq->rq_disk, read_merges);
>> } else if (rw == WRITE) {
>> disk_stat_add(rq->rq_disk, write_sectors, nr_sectors);
>>+ current->wblk += nr_sectors;
(Continue reading)
RSS Feed