Re: [PATCH v2] perf/x86/amd: Make HW_CACHE_REFERENCES and HW_CACHE_MISSES measure L2

From: Matt Fleming
Date: Fri Sep 16 2016 - 09:01:35 EST


On Thu, 25 Aug, at 05:35:14AM, Borislav Petkov wrote:
> (dropping stable@ from CC)
>
> On Wed, Aug 24, 2016 at 08:27:06PM +0200, Peter Zijlstra wrote:
> > They're not meant to be comparable between machines. I wouldn't even
> > compare the LLC numbers between two different Intel parts.
> >
> > These events are meant to profile a workload on the machine you run them
> > on. Big cache-miss/ref ratios indicate you loose performance because of
> > the memory subsystem and or data structure layout.
>
> Ah ok, then I've misunderstood Matt's justification in the commit message.
>
> FWIW: Acked-by: Borislav Petkov <bp@xxxxxxx>

Ping? Tip folks: are you OK to apply this?