Qemu and CPU wait time
Hi,
is there something equivalent to "CPU ready" in VMWare or „Hyper-V Hypervisor Virtual Processor\CPU Wait Time Per Dispatch“ in Hyper-V in
KVM/Qemu?
Thanks,
Peter
Quoted 2 lines · Peter Lieven
is there something equivalent to "CPU ready" in VMWare or „Hyper-V Hypervisor Virtual Processor\CPU Wait Time Per Dispatch“ in Hyper-V in KVM/Qemu?
I think you can get this information from "perf sched latency" (see man perf-sched). Restrict it to the vcpu threads and it shows how long a runnable vcpu has to wait (average and maximum).
Here is an example from https://lwn.net/Articles/353295/:
perf sched record sleep 10 # record full system activity for 10 seconds
perf sched latency --sort max # report latencies sorted by max
-----------------------------------------------------------------------------------------
Task | Runtime ms | Switches | Average delay ms | Maximum delay ms |
-----------------------------------------------------------------------------------------
python:14049 | 114.694 ms | 125 | avg: 0.120 ms | max: 5.343 ms |
...
-----------------------------------------------------------------------------------------
TOTAL: | 3144.817 ms | 11654 |
---------------------------------------------------
More info: http://www.brendangregg.com/blog/2017-03-16/perf-sched.html
Stefan