On Tue, Oct 6, 2015 at 6:50 PM, David Matlack <dmatl...@google.com> 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 you can record the raw events kvm:kvm_exit and kvm:kvm_entry and
> process the data however you want.
>
> On Tue, Oct 6, 2015 at 3:42 PM, Prateek Sharma <prateek3...@gmail.com> wrote:
>> 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.
>>       The stats in  /sys/debug/kvm seem to be about number of exits only,
>> not the time information. My question is: whats the most convenient way to
>> get per-exit counts and durations?
>>
>> Thanks,
>> --Prateek
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majord...@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Hi David,
   Thanks for the answer. It works perfectly.
--Prateek
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to