Re: [PATCH] Rework of /proc/stat

From: mingming cao (cmm@us.ibm.com)
Date: Wed Mar 06 2002 - 20:13:20 EST


Alan Cox wrote:

>>I've made a new version of IO statistics in kstat that remove the
>>previous limitations of MAX_MAJOR. I've made tests on my machine only, so could someone test it, please?
>>Feedback welcome.
>>
>
> Any reason for preferring this over the sard patches in -ac ?
>

Basically, statistic data are moved from the global kstat structure to
the request_queue structures, and it is allocated/freed when the request
queue is initialized and freed. This way it is

1)self-controlled;
2)avoid the lookup step before the accounting, so it should be faster;
3)statistics implementation is not affected by the major/minor numbers;
4)able to gathering statistics for all disks while keep the memory needs
minimized.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:00:58 EST