Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754609Ab0KEOUJ (ORCPT ); Fri, 5 Nov 2010 10:20:09 -0400 Received: from jaguar.mail.utk.edu ([160.36.0.84]:53396 "EHLO jaguar.mail.utk.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752336Ab0KEOUG (ORCPT ); Fri, 5 Nov 2010 10:20:06 -0400 X-Greylist: delayed 1041 seconds by postgrey-1.27 at vger.kernel.org; Fri, 05 Nov 2010 10:20:05 EDT Date: Fri, 5 Nov 2010 10:02:01 -0400 (EDT) From: Vince Weaver To: Francis Moreau cc: Victor Jimenez , Reid Kleckner , Frederic Weisbecker , linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo , Stephane Eranian , linux-perf-users@vger.kernel.org Subject: Re: perf tools miscellaneous questions In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1110 Lines: 30 On Fri, 5 Nov 2010, Francis Moreau wrote: > Victor Jimenez writes: > > [...] > > > If you are measuring last level cache misses, I would recommend you to > > use a memory intensive application/benchmark instead of /bin/true, as > > otherwise there can be a significant variation between two runs. > > I agree. > > But still with intensive application, I got the same results: you're going to need to get your architectural manual for your processor and use raw events (not the kernel default ones) if you really want to find out what's going on. A tool like libpfm4 can help change the names to raw events for you. Cache events are very tricky and they often don't return the values you expect. Hardware prefetch can cause some very non-intuitive things to happen, and the prefetch only affects certain levels of cache. Vince -- 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/