Rate This Document
Findability
Accuracy
Completeness
Readability

Testing VM PMU Event Collection

Before installing the perf tool, you need to configure the Yum repository on the VM.

  1. Start and log in to the VM.
    1
    virsh start <vmname> --console
    
  2. Install the perf tool.
    1
    yum -y install perf
    
  3. Collect basic VM kernel events for 10 seconds. If the following information is displayed, the PMU virtualization feature has been enabled.
    1
    perf stat -a sleep 10