[PATCH] - Improved disk accounting support

From: Sébastien Godard (sebastien.godard@wanadoo.fr)
Date: Sun Feb 13 2000 - 04:43:37 EST


Hi all,

Until now, Linux has no real disk accounting support. The 'page' field in
/proc/stat counts the number of calls made to make_request, which is almost
useless since the request size depends on the device.

Attached is a small (and simple) patch (iopatch-2.2.14.gz), made against
kernel 2.2.14, which counts the number of _kilobytes_ read from or written to
disks.

It adds two new fields in /proc/stat, 'disk_pgin' and 'disk_pgout':

 * it supports the first four devices as the other 'disk_*' fields in
/proc/stat do,
 * it does _not_ break existing programs,
 * I have successfully tested it for a few months on various 2.2.x kernels.

Ok, now give it a try and tell me if it may be included in the mainstream
kernels.

Please CC your answers since I am not subscribed to the list...

--
Sébastien Godard <sebastien.godard@wanadoo.fr>

Unix _is_ user friendly, but it is just selective about who its friends are!


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



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:24 EST