qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Qemu and CPU wait time
@ 2017-03-06 14:32 Peter Lieven
  2017-03-22 16:06 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Lieven @ 2017-03-06 14:32 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Qemu and CPU wait time
  2017-03-06 14:32 [Qemu-devel] Qemu and CPU wait time Peter Lieven
@ 2017-03-22 16:06 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2017-03-22 16:06 UTC (permalink / raw)
  To: Peter Lieven; +Cc: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 1294 bytes --]

On Mon, Mar 06, 2017 at 03:32:49PM +0100, Peter Lieven wrote:
> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-22 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-06 14:32 [Qemu-devel] Qemu and CPU wait time Peter Lieven
2017-03-22 16:06 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).