-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CYCLE_ACTIVITY.STALLS_L1D_PENDING is always zero #18
Comments
Does cmask=12 work correctly too? Yes it looks like a bug in the event list. I'll report it. |
It turned out to be a kernel bug. 12 is the correct cmask, but the kernel would schedule it on the wrong counter. Kernel patch (cut'n'pasted, may need to be applied manually) diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c
|
That didn't work well because MarkDown. Here's the patch |
Thanks! I just tried with a patched kernel. perf now reports the numbers correctly. |
I noticed that level 3 stats printed for memory bound workloads are incorrect on my machine (Xeon E5-2658 v3, Linux 3.19). Here is a sample output with a program that is DRAM bound (Intel MLC):
L1_Bound value is incorrect. I traced the issue to perf always reporting zero for CYCLE_ACTIVITY.STALLS_L1D_PENDING. Here is a sample perf output for that event:
With cmask=4, a value that seems correct is returned. I double checked SDM Vol3b and it seems that cmask value of 12 (0xc) should be correct. I understand this is not directly a pmu-tools bug, but was hoping to hear back if others are affected too.
The text was updated successfully, but these errors were encountered: