Re: VM exit profiling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 6, 2015 at 6:50 PM, David Matlack <dmatlack@xxxxxxxxxx> 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.14@xxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
>> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux