public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Réf. : Re: [PATCH 0/4] Virtual Machine Time Accounting
@ 2007-08-20 17:54 laurent.vivier
  2007-08-20 20:34 ` Glauber de Oliveira Costa
  0 siblings, 1 reply; 6+ messages in thread
From: laurent.vivier @ 2007-08-20 17:54 UTC (permalink / raw)
  To: Jeremy Fitzhardinge
  Cc: John Stoffel, kvm-devel, Laurent Vivier, linux-kernel,
	Ingo Molnar, virtualization


> Laurent Vivier wrote:
> functionnalities:
>
> > - allow to measure time spent by a CPU in a virtual CPU.
> > - allow to display in /proc/state this value by CPU
> > - allow to display in /proc/<pid>/state this value by process
> > - allow KVM to use these 3 previous functionnalities
> >
>
> So, currently time spent in a kvm guest is accumulated as qemu-kvm
> usertime, right?  Given that qemu knows when its running in qemu vs

No, it is accumulated as kvm system time.

> guest context, couldn't it provide the breakdown between user and guest
> time (ditto lguest)?

by doing this at kernel level, we can:
- measure exactly the guest time,
- move this part of system time to user time (as you think it should be
user time),
- have consistency between system, user and guest time,
- report values in /proc/state and /proc/<pid>/state, at system wide level

I'm not sure we can measure the guest time at the qemu user level.

Perhaps Rusty can say what he thinks about this ?

Regards,
Laurent



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

end of thread, other threads:[~2007-08-21 17:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-20 17:54 Réf. : Re: [PATCH 0/4] Virtual Machine Time Accounting laurent.vivier
2007-08-20 20:34 ` Glauber de Oliveira Costa
2007-08-21  7:45   ` Laurent Vivier
2007-08-21 17:46     ` Glauber de Oliveira Costa
2007-08-21  8:06   ` [kvm-devel] " Christian Borntraeger
2007-08-21 17:47     ` Glauber de Oliveira Costa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox