Re: VM exit profiling

2015-10-06 Thread Prateek Sharma
On Tue, Oct 6, 2015 at 6:50 PM, David Matlack wrote: > Have you tried perf kvm stat? e.g. > > perf kvm stat record -a sleep 10 # record all vmexits for 10 seconds > perf kvm stat report --event=vmexit > > This gives per-exit counts and min/max/avg latencies. > > Alternatively

VM exit profiling

2015-10-06 Thread Prateek Sharma
Hello all, There used to be perf scripts to do exit-level profiling of VMs (number of exits, time spent per exit, etc). I am using kernel version 3.19, and the perf utility which ships with it has a perf-kvm option, but that only reports total number of exits, and not the reason/latency.

Re: VM exit profiling

2015-10-06 Thread David Matlack
Have you tried perf kvm stat? e.g. perf kvm stat record -a sleep 10 # record all vmexits for 10 seconds perf kvm stat report --event=vmexit This gives per-exit counts and min/max/avg latencies. Alternatively you can record the raw events kvm:kvm_exit and kvm:kvm_entry and process the data