Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755066Ab0BAVXf (ORCPT ); Mon, 1 Feb 2010 16:23:35 -0500 Received: from TYO202.gate.nec.co.jp ([202.32.8.206]:51870 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754993Ab0BAVXd (ORCPT ); Mon, 1 Feb 2010 16:23:33 -0500 Message-ID: <4B6745AA.1070703@bx.jp.nec.com> Date: Mon, 01 Feb 2010 16:20:42 -0500 From: Keiichi KII User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1 MIME-Version: 1.0 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 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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1131 Lines: 28 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/