kvm和vm
Sometimes, we may want to know the specific benchmark can cause what kind of VM exits.
有时,我们可能想知道特定的基准可以导致哪种类型的VM退出。
1, Install perf.
2, # perf kvm stat record -a
^C
3, # perf kvm stat report
This will report your VM exit numbers and what kind of operation lead to VM exit. You may need to compare many times to see whether the workload will let your system produce different number of VM exit.
这将报告您的VM出口编号以及导致VM退出的哪种操作。 您可能需要进行多次比较,以查看工作负载是否会让您的系统产生不同数量的VM退出。
Answered by harryxiyou.
由harryxiyou回答。
翻译自: https://www.systutorials.com/how-to-collect-vm-exit-numbers-in-kvm/
kvm和vm