From: "H. Taheri" <rezato@gmail.com>
To: "linux-perf-users@vger.kernel.org" <linux-perf-users@vger.kernel.org>
Subject: Not getting PMC events on Broadwell-EX
Date: Mon, 7 Aug 2017 21:37:19 -0700 [thread overview]
Message-ID: <B10BA2E5-3BC7-481F-8EC7-DFEB229526EC@vmware.com> (raw)
Hi experts,
I am getting 0s, or <not supported>, or <not counted> for events that are supposed to work on this processor. For example, according to Intel documentation, L2_RQSTS.MISS and L2_RQSTS.REFERENCES are supported on this processor with event code 0x24 and unit masks 0x3f and 0xff. But when I run perf stat (also with -d -d -d to see if the built-in command options can get the cache stats), I get:
[root@prme-perf-broadwell-2 intel]# perf stat -d -d -d -e cycles -e instructions -e r24ff -e r243f sleep 10
Performance counter stats for 'sleep 10':
295,132 cycles
676,801 instructions # 2.29 insn per cycle
0 r24ff
0 r243f
175,865 L1-dcache-loads
12,686 L1-dcache-load-misses # 7.21% of all L1-dcache hits (67.93%)
<not counted> LLC-loads (0.00%)
<not counted> LLC-load-misses (0.00%)
<not supported> L1-icache-loads
<not counted> L1-icache-load-misses (0.00%)
<not counted> dTLB-loads (0.00%)
<not counted> dTLB-load-misses (0.00%)
<not counted> iTLB-loads (0.00%)
<not counted> iTLB-load-misses (0.00%)
<not supported> L1-dcache-prefetches
<not supported> L1-dcache-prefetch-misses
10.001308205 seconds time elapsed
This is the /proc/cpuinfo from the guest:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E7-8890 v4 @ 2.20GHz
stepping : 1
microcode : 0xb00001d
cpu MHz : 1200.031
cache size : 30720 KB
physical id : 0
siblings : 48
core id : 0
cpu cores : 24
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch ida arat epb pln pts dtherm intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdseed adx smap xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local
bogomips : 4388.87
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
Thanks,
Reza
next reply other threads:[~2017-08-08 4:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-08 4:37 H. Taheri [this message]
2017-08-08 13:53 ` Not getting PMC events on Broadwell-EX Vince Weaver
2017-08-08 16:32 ` Andi Kleen
2017-08-08 16:54 ` Reza Taheri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B10BA2E5-3BC7-481F-8EC7-DFEB229526EC@vmware.com \
--to=rezato@gmail.com \
--cc=linux-perf-users@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).