简体   繁体   中英

Accessing performance counters using likwid-perfctr

I have been using likwid ( link ) for accessing performance counters in my dual socket Intel Xeon E5 2660 v4 processors. I was able to use the tool ( likwid-perfctr ) successfully until last december. When I got back to the tool today after almost a month, I am getting the following warning:

WARN: Counter PMC0 is only available with deactivated HyperThreading. Counter results defaults to 0. WARN: Counter PMC1 is only available with deactivated HyperThreading. Counter results defaults to 0. WARN: Counter PMC2 is only available with deactivated HyperThreading. Counter results defaults to 0.

The problem persists even after enabling/disabling hyperthreading from BIOS. Additionally, I get this error even when I run the perfctr command as root.

Has anybody run into this issue? Was there any recent kernel update that makes it difficult to read the MSR registers (which could explain the appearance of the warning message in the last month)?

System Information: Debian Stretch, kernel 3.16, likwid version 4.3, and finally the command I am trying to run likwid-perfctr -CN:0-27 -g L3CACHE -m executable

The above problem has been fixed in commit 03422ed of likwid. The problem was due to incorrect ifdefs which was causing likwid to read the number of performance counters incorrectly

Link to answer in the likwid-user google group - https://groups.google.com/forum/#!topic/likwid-users/oe2ch0aHONY

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM