Show Table of Contents
2.3. 虚拟性能监控单位
虚拟性能监控单位(vPMU,virtual performance monitoring unit)显示客户虚拟机功能的数据。
虚拟性能监控单位允许用户识别客户虚拟机中可能出现的性能问题来源。虚拟性能监控单位基于 Intel 性能监控单位(Performance Monitoring Unit)并只能以 Intel 机器为基础。
该特性只能支持运行 Red Hat Enterprise Linux 6 或 Red Hat Enterprise Linux 7 的客户虚拟机,并且会被默认禁用。
要验证系统是否支持虚拟 PMU 时,请运行以下命令检查主机 CPU 中的
arch_perfmon 标识:
# cat /proc/cpuinfo|grep arch_perfmon
在运行虚拟 PMU 时,以
host-passthrough 在客户虚拟机中指定 cpu mode:
# virsh dumpxml guest_name |grep "cpu mode"
<cpu mode='host-passthrough'>
在虚拟 PMU 激活之后,通过运行客户虚拟机的
perf 命令显示虚拟机的性能数据。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.