Re: [PATCH v2 3/6] KVM-GST: KVM Steal time accounting

2011-02-02 Thread Avi Kivity
On 02/01/2011 05:57 PM, Glauber Costa wrote: On Sun, 2011-01-30 at 16:04 +0200, Avi Kivity wrote: On 01/28/2011 09:52 PM, Glauber Costa wrote: This patch accounts steal time time in kernel/sched. I kept it from last proposal, because I still see advantages in it: Doing it here will

Re: [PATCH v2 3/6] KVM-GST: KVM Steal time accounting

2011-02-01 Thread Glauber Costa
On Sun, 2011-01-30 at 16:04 +0200, Avi Kivity wrote: On 01/28/2011 09:52 PM, Glauber Costa wrote: This patch accounts steal time time in kernel/sched. I kept it from last proposal, because I still see advantages in it: Doing it here will give us easier access from scheduler variables such

Re: [PATCH v2 3/6] KVM-GST: KVM Steal time accounting

2011-02-01 Thread Glauber Costa
On Mon, 2011-01-31 at 00:45 +0800, lidong chen wrote: I think we can use performance counter. use unhalted core cycles event, in the nmi callback funcation, count which process is running . if the vm exit is caused by nmi,discard it. the system time of qemu process is the time steal by kvm.

Re: [PATCH v2 3/6] KVM-GST: KVM Steal time accounting

2011-01-30 Thread lidong chen
I think we can use performance counter. use unhalted core cycles event, in the nmi callback funcation, count which process is running . if the vm exit is caused by nmi,discard it. the system time of qemu process is the time steal by kvm. 2011/1/30 Avi Kivity a...@redhat.com: On 01/28/2011

[PATCH v2 3/6] KVM-GST: KVM Steal time accounting

2011-01-28 Thread Glauber Costa
This patch accounts steal time time in kernel/sched. I kept it from last proposal, because I still see advantages in it: Doing it here will give us easier access from scheduler variables such as the cpu rq. The next patch shows an example of usage for it. Since functions like account_idle_time()

Re: [PATCH v2 3/6] KVM-GST: KVM Steal time accounting

2011-01-28 Thread Jeremy Fitzhardinge
On 01/28/2011 11:52 AM, Glauber Costa wrote: This patch accounts steal time time in kernel/sched. I kept it from last proposal, because I still see advantages in it: Doing it here will give us easier access from scheduler variables such as the cpu rq. The next patch shows an example of usage

Re: [PATCH v2 3/6] KVM-GST: KVM Steal time accounting

2011-01-28 Thread Glauber Costa
On Fri, 2011-01-28 at 17:16 -0800, Jeremy Fitzhardinge wrote: On 01/28/2011 11:52 AM, Glauber Costa wrote: This patch accounts steal time time in kernel/sched. I kept it from last proposal, because I still see advantages in it: Doing it here will give us easier access from scheduler

Re: [PATCH v2 3/6] KVM-GST: KVM Steal time accounting

2011-01-28 Thread Rik van Riel
On 01/28/2011 02:52 PM, Glauber Costa wrote: This patch accounts steal time time in kernel/sched. I kept it from last proposal, because I still see advantages in it: Doing it here will give us easier access from scheduler variables such as the cpu rq. The next patch shows an example of usage for