From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with ESMTP id 006466B004D for ; Mon, 1 Feb 2010 16:23:12 -0500 (EST) Message-ID: <4B6745AA.1070703@bx.jp.nec.com> Date: Mon, 01 Feb 2010 16:20:42 -0500 From: Keiichi KII MIME-Version: 1.0 Subject: Re: [RFC PATCH -tip 2/2 v2] add a scripts for pagecache usage per process References: <4B5A3D00.8080901@bx.jp.nec.com> <4B5A3E19.6060502@bx.jp.nec.com> <1264234865.6595.75.camel@tropicana> <4B5E1855.4090809@bx.jp.nec.com> <1265012255.6526.18.camel@tropicana> In-Reply-To: <1265012255.6526.18.camel@tropicana> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Tom Zanussi Cc: linux-kernel@vger.kernel.org, lwoodman@redhat.com, linux-mm@kvack.org, mingo@elte.hu, riel@redhat.com, rostedt@goodmis.org, akpm@linux-foundation.org, fweisbec@gmail.com, Munehiro Ikeda , Atsushi Tsuji List-ID: 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org