From: Christian Borntraeger <borntraeger@de.ibm.com>
To: "David S. Ahern" <daahern@cisco.com>
Cc: Terry <terry.cchang@gmail.com>, kvm@vger.kernel.org
Subject: Re: time command in vm
Date: Wed, 3 Sep 2008 09:43:46 +0200 [thread overview]
Message-ID: <200809030943.46904.borntraeger@de.ibm.com> (raw)
In-Reply-To: <48BD6F43.4090107@cisco.com>
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
next prev parent reply other threads:[~2008-09-03 7:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2008-09-03 9:37 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200809030943.46904.borntraeger@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=daahern@cisco.com \
--cc=kvm@vger.kernel.org \
--cc=terry.cchang@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox