Linux has *got* to mature to the point where the documentation is *accurate*
and *available* and the APIs don't wobble under the feet of their users. I
recently spent a week trying to track down the units used for the disk stats
in /proc/stat. Through a combination of queries on the LKML and trucking
through the source with rgrep, I managed to get my questions answered. It
matters to me and to the people I work for exactly how many bytes the I/O
subsystem is handling per second, and how close to the capacity of the I/O
subsystem a machine is operating. I consider the fact that I had to dig for
and ask for this information unacceptable.
Maybe I've said this before, but it bears repeating for those in the Linux
community that are not in a business situation: business is about time,
people and money. Business people in general don't optimize, they
*satisfice*. That is, the overwhelming market share goes not to the *best*
product but to the one that is good enough and saves people time or makes
people money. Something that wastes my time costs my employer money.
-- M. Edward Borasky email@example.com
The COUGAR Project http://www.borasky-research.com/Cougar.htm
-----Original Message----- From: firstname.lastname@example.org [mailto:email@example.com]On Behalf Of Andries.Brouwer@cwi.nl Sent: Saturday, May 04, 2002 12:59 PM To: firstname.lastname@example.org; email@example.com; firstname.lastname@example.org; email@example.com Subject: Re: IO stats in /proc/partitions
Earlier I noticed that RedHat did put some statistics in /proc/partitions. That was bad, but I assumed that it was their laziness, being too busy to do a proper job.
However, I see that these days the pollution of /proc/partitions is becoming official - it is part of patch-2.4.19-pre7. I strongly object, and hope it is not too late to revert this.
Things must do one thing, and one thing well. The task of /proc/partitions is to list which partitions the kernel knows about. When I implemented it I thought that adding the starting offset would be superfluous, but in fact I now realize that that is required for several applications. So, /proc/partitions must be updated sooner or later with an additional field "starting offset". Possibly more fields to enable identification. Sometimes it is really difficult to determine which Linux name belongs to which hardware device, especially with USB.
On the other hand, disk statistics should not be in /proc/partitions. They should be in /proc/diskstatistics. I see a heading today "rio rmerge rsect ruse wio wmerge" "wsect wuse running use aveq". No doubt next year we'll want different statistics. So /proc/diskstatistics should start with a header line including a version field.
Please keep these disk statistics apart from /proc/partitions.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/