On Wed, Aug 05, 2009 at 10:07:43AM +0100, Mel Gorman wrote:
Maybe if more people would tell how they currently use tracepoints in
the MM we can find some common ground on what can be useful to more
than one person and why?
FWIW, I recently started using tracepoints at the following places for
looking at swap code behaviour:
o swap slot alloc/free [type, offset]
o swap slot read/write [type, offset]
o swapcache add/delete [type, offset]
o swap fault/evict [page->mapping, page->index, type, offset]
This gives detail beyond vmstat's possibilities at the cost of 8 lines
of trace_swap_foo() distributed over 5 files.
I have not aggregated the output so far, just looked at the raw data
and enjoyed reading how the swap slot allocator behaves in reality
(you can probably integrate the traces into snapshots of the whole
swap space layout), what load behaviour triggers insane swap IO
patterns, in what context is readahead reading the wrong pages etc.,
stuff you wouldn't see when starting out with statistical
aggregations.
Now, these data are pretty specialized and probably only few people
will make use of them, but OTOH, the cost they impose on the traced
code is so miniscule that it would be a much greater pain to 1) know
about and find third party patches and 2) apply, possibly forward-port
third party patches.
Hannes
--