* KVM Virtual CPU time profiling
@ 2010-01-21 18:41 Saksena, Abhishek
2010-01-22 2:38 ` Sheng Yang
0 siblings, 1 reply; 2+ messages in thread
From: Saksena, Abhishek @ 2010-01-21 18:41 UTC (permalink / raw)
To: kvm@vger.kernel.org
Hi All,
Is there a way in KVM to measure the real physical (CPU) time consumed by each running Virtual CPU? (I want to do time profiling of the virtual machines running on host system)
Also, is there an explanation somewhere on how Virtual CPU scheduling is achieved in KVM?
Thanks
Abhishek
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: KVM Virtual CPU time profiling
2010-01-21 18:41 KVM Virtual CPU time profiling Saksena, Abhishek
@ 2010-01-22 2:38 ` Sheng Yang
0 siblings, 0 replies; 2+ messages in thread
From: Sheng Yang @ 2010-01-22 2:38 UTC (permalink / raw)
To: kvm; +Cc: Saksena, Abhishek
On Friday 22 January 2010 02:41:35 Saksena, Abhishek wrote:
> Hi All,
> Is there a way in KVM to measure the real physical (CPU) time consumed by
> each running Virtual CPU? (I want to do time profiling of the virtual
> machines running on host system)
>
> Also, is there an explanation somewhere on how Virtual CPU scheduling is
> achieved in KVM? Thanks
Each VM is a QEmu process, and each vcpu is a thread of it(but not all the
threads are vcpus). Currently the KVM related scheduler algorithm is the same
as other host threads/processes.
You can get thread_id for each vcpu in QEmu monitor, by:
(qemu) info cpus
Then, you can do anything you want with it, e.g. using top to got each
thread/vcpu's CPU time. :)
--
regards
Yang, Sheng
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-22 2:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-21 18:41 KVM Virtual CPU time profiling Saksena, Abhishek
2010-01-22 2:38 ` Sheng Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox