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