Re: [RFC] [Patch 3/3] readahead statistics slimmed down

From: Martin Peschke
Date: Mon May 07 2007 - 08:44:30 EST


Fengguang Wu wrote:
2007/5/3, Martin Peschke <mp3@xxxxxxxxxx>:

This patch implements the bulk of the existing the adaptive readahead
statistics with lib/statistics.c.

The output format differs somewhat as the the statistics code just emits
lists of items and doesn't do tables. It is feasible to leave
reformating and beautification to some user scripts, if needed. This
patch omits some summary data, most of which can be done in user space
as well.

Sample output (from dd'ing a disk):

cache_miss.total 0 0
cache_miss.initial 0 0
cache_miss.clock 10 10
cache_miss.context 0 0


Martin,

The new form of readahead statistics is appreciated. The code is much
simpler and the output is suitable for scripting. Thank you for doing the
conversion.

Me too have trimmed out the original ra_events_show() stuff based on your
patches. However, later on it becomes obvious that the current adaptive
readahead patch needs non-trivial rework. So the accounting patches were put
off. Expect to see them in the adaptive readahead kernel module ;-)

Thank you,
Fengguang Wu

I have been wondering whether this one might be worth staging in -mm along with the other readahead patches. It would be work be work in progress like the other readahead patches. But I leave this decision to you and Andrew.

THanks for the positive feedback.

Martin

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