简体   繁体   English

使用likwid-perfctr访问性能计数器

[英]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. 我一直在使用likwid( link )访问双插槽Intel Xeon E5 2660 v4处理器中的性能计数器。 I was able to use the tool ( likwid-perfctr ) successfully until last december. 我能够成功使用该工具( likwid-perfctr )直到去年12月。 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. 即使在从BIOS启用/禁用超线程之后,问题仍然存在。 Additionally, I get this error even when I run the perfctr command as root. 另外,即使我以root身份运行perfctr命令,也会收到此错误。

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)? 是否有最近的内核更新使之难以读取MSR寄存器(这可以解释警告消息在上个月的出现)?

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 系统信息:Debian Stretch,内核3.16,likwid版本4.3,最后是我尝试运行likwid-perfctr -CN:0-27 -g L3CACHE -m executable

The above problem has been fixed in commit 03422ed of likwid. 上面的问题已在likwidcommit 03422中修复。 The problem was due to incorrect ifdefs which was causing likwid to read the number of performance counters incorrectly 问题是由于错误的ifdefs导致的,导致likwid错误地读取了性能计数器的数量

Link to answer in the likwid-user google group - https://groups.google.com/forum/#!topic/likwid-users/oe2ch0aHONY 链接到likwid用户的谷歌组回答- https://groups.google.com/forum/#!topic/likwid-users/oe2ch0aHONY

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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