Skip to content

Instantly share code, notes, and snippets.

@VedantParanjape
Created April 6, 2022 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VedantParanjape/00959ada3aa3b8841342adfe7ccc260f to your computer and use it in GitHub Desktop.
Save VedantParanjape/00959ada3aa3b8841342adfe7ccc260f to your computer and use it in GitHub Desktop.
sudo perf kvm stat record -e "kvm:*"
sudo perf kvm stat report --event=vmexit
@VedantParanjape
Copy link
Author

Analyze events for all VMs, all VCPUs:

             VM-EXIT    Samples  Samples%     Time%    Min Time    Max Time         Avg time

           MSR_WRITE      10295    24.30%    26.06%      1.36us     32.26us      4.04us ( +-   0.30% )
    PREEMPTION_TIMER      10295    24.30%    21.23%      0.88us     16.09us      3.29us ( +-   0.33% )
  EXTERNAL_INTERRUPT      10290    24.29%    13.71%      0.45us     33.98us      2.12us ( +-   1.77% )
       EPT_VIOLATION       9195    21.71%    11.09%      1.17us     26.15us      1.92us ( +-   0.84% )
       EPT_MISCONFIG       1360     3.21%    15.65%      5.96us   3500.54us     18.35us ( +-  25.63% )
      IO_INSTRUCTION        740     1.75%    12.06%      1.61us   3100.51us     26.00us ( +-  30.72% )
   PAUSE_INSTRUCTION        159     0.38%     0.13%      0.77us      3.54us      1.35us ( +-   4.43% )
         EOI_INDUCED         20     0.05%     0.06%      3.85us      5.86us      4.84us ( +-   2.39% )
       EXCEPTION_NMI          5     0.01%     0.00%      1.11us      2.55us      1.52us ( +-  17.29% )

Total Samples:42359, Total events handled time:159479.33us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment