[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0812161149430.6141@pianoman.cluster.toy>
Date: Tue, 16 Dec 2008 11:55:27 -0500 (EST)
From: Vince Weaver <vince@...ter.net>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>
cc: Paul Mackerras <paulus@...ba.org>, Ingo Molnar <mingo@...e.hu>,
linux-kernel@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Stephane Eranian <eranian@...glemail.com>,
Eric Dumazet <dada1@...mosbay.com>,
Robert Richter <robert.richter@....com>,
Arjan van de Ven <arjan@...radead.org>,
Peter Anvin <hpa@...or.com>,
"David S. Miller" <davem@...emloft.net>,
perfctr-devel@...ts.sourceforge.net
Subject: Re: [patch] Performance Counters for Linux, v4
> On Tue, 2008-12-16 at 08:42 +1100, Paul Mackerras wrote:
> Furthermore, I think output of tools such as time and now timec are most
> relevant when compared between runs - that is, the change in values
> between runs, not the absolute values as such. At least, that's what I
> usually do:
That's doesn't do you any good when comparing results across different
machines, or even different kernels on the same machine.
perfmon shows that good results can be had, even if it's not the cleanest
way in the world. It would be a shame to lose that.
Small micro-benchmarks like this are important. You can't always trust
the performance counters to work, so being able to sanity check them with
exact test-cases is critical. Otherwise you might just be measuring
nonsense.
And while it might be able to subtract the exec() overhead for something
like retired instructions, it gets a lot more complicated when you have
something like cache bus snoops or branch mispredicts where it's hard to
tell what comes from the program and what is overhead from the monitoring
infrastructure.
Vince
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists