How to collect VM exit numbers in KVM

Sometimes, we may want to know the specific benchmark can cause what kind of VM exits.

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.

Answered by harryxiyou.

Weiwei Jia

Weiwei Jia is a Ph.D. student in the Department of Computer Science at New Jersey Institute of Technology since 2016. His research interests are include storage systems, operating systems and computer systems.

Leave a Reply

Your email address will not be published. Required fields are marked *