问题描述

项目希望评估算法的CPU开销,使用linux常用的perf工具。
查看perf stat只显示cpu-clock, context-switches, cpu-migrations
剩余cycles, instructions, branches, branch-misses均为not supported

原因分析

该参数使用物理机可测量,猜测问题出在虚拟化。

解决方案

关闭VMware虚拟机电源,找到硬件配置选项中CPU
勾选☑️虚拟化CPU性能计数器重启问题解决

相关文章:

  • 2021-09-10
  • 2022-12-23
  • 2021-04-07
  • 2021-12-23
  • 2021-08-15
  • 2021-06-17
  • 2021-06-16
  • 2021-11-20
猜你喜欢
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-05-04
  • 2021-06-29
  • 2021-06-16
相关资源
相似解决方案