Messages in this thread | | | Date | Mon, 01 Feb 2010 16:20:42 -0500 | From | Keiichi KII <> | Subject | Re: [RFC PATCH -tip 2/2 v2] add a scripts for pagecache usage per process |
| |
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
| |