* time command in vm
@ 2008-08-30 2:53 Terry
2008-09-02 16:52 ` David S. Ahern
0 siblings, 1 reply; 4+ messages in thread
From: Terry @ 2008-08-30 2:53 UTC (permalink / raw)
To: kvm
Hi All,
When we use time command in vm, we can get 'elapsed time', 'user time'
and 'system time'. How to explain these three times in detail? For
example, when we have a shadow page fault, we exit from guest to host
for handling the fault. So, this handling time should be considered in??
Thanks,
Terry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: time command in vm
2008-08-30 2:53 time command in vm Terry
@ 2008-09-02 16:52 ` David S. Ahern
2008-09-03 7:43 ` Christian Borntraeger
2008-09-03 9:37 ` Avi Kivity
0 siblings, 2 replies; 4+ messages in thread
From: David S. Ahern @ 2008-09-02 16:52 UTC (permalink / raw)
To: Terry; +Cc: kvm
Terry wrote:
> Hi All,
>
> When we use time command in vm, we can get 'elapsed time', 'user time'
> and 'system time'. How to explain these three times in detail? For
> example, when we have a shadow page fault, we exit from guest to host
> for handling the fault. So, this handling time should be considered in??
>
I believe the time spent within kvm handling faults and such for the
guest shows up as system time to the guest.
david
> Thanks,
> Terry
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: time command in vm
2008-09-02 16:52 ` David S. Ahern
@ 2008-09-03 7:43 ` Christian Borntraeger
2008-09-03 9:37 ` Avi Kivity
1 sibling, 0 replies; 4+ messages in thread
From: Christian Borntraeger @ 2008-09-03 7:43 UTC (permalink / raw)
To: David S. Ahern; +Cc: Terry, kvm
Am Dienstag, 2. September 2008 schrieb David S. Ahern:
>
> Terry wrote:
> > Hi All,
> >
> > When we use time command in vm, we can get 'elapsed time', 'user time'
> > and 'system time'. How to explain these three times in detail? For
> > example, when we have a shadow page fault, we exit from guest to host
> > for handling the fault. So, this handling time should be considered in??
> >
>
> I believe the time spent within kvm handling faults and such for the
> guest shows up as system time to the guest.
>
> david
It depends on the time accounting.
Systems with CONFIG_VIRT_CPU_ACCOUNTING (s390 and ppc64) will account host
page fault handling as steal time in the guest. guest user and guest system
time remain unchanged. (Host system time will increase of course)
On other systems (e.g. x86), I think the host page fault time will be
accounted to either guest system or guest user, depending on where the next
tick triggers accouting.
elapsed time will increase on both kind of system.
Christian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: time command in vm
2008-09-02 16:52 ` David S. Ahern
2008-09-03 7:43 ` Christian Borntraeger
@ 2008-09-03 9:37 ` Avi Kivity
1 sibling, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2008-09-03 9:37 UTC (permalink / raw)
To: David S. Ahern; +Cc: Terry, kvm
David S. Ahern wrote:
> Terry wrote:
>
>> Hi All,
>>
>> When we use time command in vm, we can get 'elapsed time', 'user time'
>> and 'system time'. How to explain these three times in detail? For
>> example, when we have a shadow page fault, we exit from guest to host
>> for handling the fault. So, this handling time should be considered in??
>>
>>
>
> I believe the time spent within kvm handling faults and such for the
> guest shows up as system time to the guest.
>
It depends. If the fault happens in guest userspace, it would be
accounted as guest user time. From the guest's point of view, it's just
a slow memory access.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-03 9:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-30 2:53 time command in vm Terry
2008-09-02 16:52 ` David S. Ahern
2008-09-03 7:43 ` Christian Borntraeger
2008-09-03 9:37 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox