Re: [RFC PATCH -tip 2/2 v2] add a scripts for pagecache usage perprocess

From: Keiichi KII
Date: Mon Feb 01 2010 - 16:23:38 EST


Hello,

(02/01/10 03:17), Tom Zanussi wrote:
> Here's one way, using the tracepoint filters - it does make a big
> difference in this case.
>
> Before (using the new -P option, which includes perf in the trace
> data):
>
> root@tropicana:~# perf record -c 1 -f -a -M -R -e filemap:add_to_page_cache -e filemap:find_get_page -e filemap:remove_from_page_cache -P sleep 5
> [ perf record: Woken up 0 times to write data ]
> [ perf record: Captured and wrote 71.201 MB perf.data (~3110815 samples) ]
>
> After (filters out events generated by perf):
>
> root@tropicana:~# perf record -c 1 -f -a -M -R -e filemap:add_to_page_cache -e filemap:find_get_page -e filemap:remove_from_page_cache sleep 5
> [ perf record: Woken up 1 times to write data ]
> [ perf record: Captured and wrote 0.309 MB perf.data (~13479 samples) ]

I tried your patch.
It works well for me. Thank you.

Keiichi
--
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/