All of lore.kernel.org
 help / color / mirror / Atom feed
* LLC-* events not working on sandybridge
@ 2012-04-28 23:03 David Wragg
  2012-04-30  8:43 ` Namhyung Kim
  0 siblings, 1 reply; 5+ messages in thread
From: David Wragg @ 2012-04-28 23:03 UTC (permalink / raw)
  To: linux-perf-users

Hi,

I've run into a problem with perf on an Intel Sandybridge machine: The
LLC-* events never seem to trigger.

For example:

$ perf stat -e LLC-load-misses ls /
[...]
                 0 LLC-load-misses

       0.001082639 seconds time elapsed

Non-LLC events work fine:

$ perf stat -e cache-misses ls /
[...]
             4,272 cache-misses

       0.002945606 seconds time elapsed

This is on a Intel i5 machine (i5-2520M), running a fully updated Fedora
16 ('perf --version': 3.3.2-6.fc16.x86_64, 'uname -r':
3.3.2-6.fc16.x86_64).

Any ideas?

David

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: LLC-* events not working on sandybridge
  2012-04-28 23:03 LLC-* events not working on sandybridge David Wragg
@ 2012-04-30  8:43 ` Namhyung Kim
  2012-04-30 17:50   ` David Wragg
  0 siblings, 1 reply; 5+ messages in thread
From: Namhyung Kim @ 2012-04-30  8:43 UTC (permalink / raw)
  To: David Wragg; +Cc: linux-perf-users

Hi,

On Sun, 29 Apr 2012 00:03:14 +0100, David Wragg wrote:
> Hi,
>
> I've run into a problem with perf on an Intel Sandybridge machine: The
> LLC-* events never seem to trigger.
>
> For example:
>
> $ perf stat -e LLC-load-misses ls /
> [...]
>                  0 LLC-load-misses
>
>        0.001082639 seconds time elapsed
>
> Non-LLC events work fine:
>
> $ perf stat -e cache-misses ls /
> [...]
>              4,272 cache-misses
>
>        0.002945606 seconds time elapsed
>
> This is on a Intel i5 machine (i5-2520M), running a fully updated Fedora
> 16 ('perf --version': 3.3.2-6.fc16.x86_64, 'uname -r':
> 3.3.2-6.fc16.x86_64).
>
> Any ideas?
>
> David

I have a same problem on my i7-3930K machine. I guess it's because of
lacking of extra register (MSP_OFFCORE_RSP_X) settings. But I have no
idea of how I can set it properly :(.

Thanks,
Namhyung

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: LLC-* events not working on sandybridge
  2012-04-30  8:43 ` Namhyung Kim
@ 2012-04-30 17:50   ` David Wragg
  2012-05-02  0:53     ` Namhyung Kim
  0 siblings, 1 reply; 5+ messages in thread
From: David Wragg @ 2012-04-30 17:50 UTC (permalink / raw)
  To: Namhyung Kim; +Cc: linux-perf-users

Namhyung Kim <namhyung.kim@lge.com> writes:
> On Sun, 29 Apr 2012 00:03:14 +0100, David Wragg wrote:
>> I've run into a problem with perf on an Intel Sandybridge machine: The
>> LLC-* events never seem to trigger.
>> [...]
>
> I have a same problem on my i7-3930K machine. I guess it's because of
> lacking of extra register (MSP_OFFCORE_RSP_X) settings. But I have no
> idea of how I can set it properly :(.

Ok, I've done some further digging around, and it doesn't look like the
patch "perf events, x86: Implement Sandybridge last-level cache events"
at <https://lkml.org/lkml/2011/5/9/80> ever got merged.  It's not clear
why.

David

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: LLC-* events not working on sandybridge
  2012-04-30 17:50   ` David Wragg
@ 2012-05-02  0:53     ` Namhyung Kim
  2012-05-05 23:48       ` David Wragg
  0 siblings, 1 reply; 5+ messages in thread
From: Namhyung Kim @ 2012-05-02  0:53 UTC (permalink / raw)
  To: David Wragg; +Cc: linux-perf-users

Hi,

On Mon, 30 Apr 2012 18:50:39 +0100, David Wragg wrote:
> Namhyung Kim <namhyung.kim@lge.com> writes:
>> On Sun, 29 Apr 2012 00:03:14 +0100, David Wragg wrote:
>>> I've run into a problem with perf on an Intel Sandybridge machine: The
>>> LLC-* events never seem to trigger.
>>> [...]
>>
>> I have a same problem on my i7-3930K machine. I guess it's because of
>> lacking of extra register (MSP_OFFCORE_RSP_X) settings. But I have no
>> idea of how I can set it properly :(.
>
> Ok, I've done some further digging around, and it doesn't look like the
> patch "perf events, x86: Implement Sandybridge last-level cache events"
> at <https://lkml.org/lkml/2011/5/9/80> ever got merged.  It's not clear
> why.
>

It seems that PeterZ and Ingo don't want an unverified patch get
merged. But you can still test with it and, hopefully, provide us a
verification :).

Thanks,
Namhyung

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: LLC-* events not working on sandybridge
  2012-05-02  0:53     ` Namhyung Kim
@ 2012-05-05 23:48       ` David Wragg
  0 siblings, 0 replies; 5+ messages in thread
From: David Wragg @ 2012-05-05 23:48 UTC (permalink / raw)
  To: Namhyung Kim; +Cc: linux-perf-users

Namhyung Kim <namhyung.kim@lge.com> writes:
> On Mon, 30 Apr 2012 18:50:39 +0100, David Wragg wrote:
>> Ok, I've done some further digging around, and it doesn't look like the
>> patch "perf events, x86: Implement Sandybridge last-level cache events"
>> at <https://lkml.org/lkml/2011/5/9/80> ever got merged.  It's not clear
>> why.
>>
>
> It seems that PeterZ and Ingo don't want an unverified patch get
> merged. But you can still test with it and, hopefully, provide us a
> verification :).

I fixed the patch up for 3.3, and it works for me.  I'll ask Lin Ming
what happened to it.

David

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-05-05 23:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-28 23:03 LLC-* events not working on sandybridge David Wragg
2012-04-30  8:43 ` Namhyung Kim
2012-04-30 17:50   ` David Wragg
2012-05-02  0:53     ` Namhyung Kim
2012-05-05 23:48       ` David Wragg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.