xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: Priya <pbhat@acis.ufl.edu>,
	xen-devel@lists.xensource.com, xen-users@lists.xensource.com
Subject: RE: [Xen-devel] Domain-Virtual time
Date: Thu, 25 Feb 2010 12:36:00 -0800 (PST)	[thread overview]
Message-ID: <f8cbf9bc-067b-4429-b74a-669b0bb462af@default> (raw)
In-Reply-To: <5c3550fe1002250803q21decea2j101c53fe390b856c@mail.gmail.com>

Should be "true" system time, i.e. should be very close to what
you see on a "wallclock" (clock on the wall).

HVM's are sadly very widely varied in the parameters needed
to minimize time drift.  In general in the past, timer_mode=0
(or timer_mode unspecified) would be best for 32-bit Linux
domains, timer_mode=1 would be best for Windows domains,
and timer_mode=2 would be best for 64-bit Linux domains.
However, for best results on Linux, this must be combined with
kernel boot parameters that properly select a clock -- and
on some Linux kernel versions, the parameters needed are
different between 32-bit and 64-bit versions of the same
kernel version.  It is up to providers of HVM templates
(aka "appliances") to choose parameters wisely.

Also, you haven't specified your Xen version, but I believe
Xen 4.0 switches the timer_mode default from 0 to 1 so, sadly,
clock behavior may change when moving an unchanged HVM
domain from pre-4.0 to 4.0.

So for best results you should run ntpd in any Linux HVM
domain (and I don't know what you do in Windows).  But
even ntpd may be inadequate to avoid drift if poor parameters
are chosen.

==========

From: Priya [mailto:pbhat@acis.ufl.edu] 
Sent: Thursday, February 25, 2010 9:04 AM
To: xen-devel@lists.xensource.com; xen-users@lists.xensource.com
Subject: [Xen-devel] Domain-Virtual time

Sorry for multiple emails. I sent the last one from the wrong address.

Can anyone please tell me if the value returned by a time querying instruction like gettimeofday() on a Xen (Linux) HVM is the true (System) time or the Domain-virtual time?

PS: Domain virtual time is defined as the time that progresses at the same pace as cycle counter, but only while a domain is executing. It stops while the domain is de-scheduled where as System time accurately reflects the passage of real time.

I am facing issues because my HVMs show a time drift. 

Thanks

  reply	other threads:[~2010-02-25 20:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25 16:03 Domain-Virtual time Priya
2010-02-25 20:36 ` Dan Magenheimer [this message]
2010-02-26 16:46   ` [Xen-devel] " Priya
2010-02-26 17:01     ` Tim Deegan
2010-02-26 17:20       ` Priya
2010-02-26 17:46         ` Dan Magenheimer
2010-02-26 18:52           ` Priya
2010-02-26 17:26     ` Dan Magenheimer

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=f8cbf9bc-067b-4429-b74a-669b0bb462af@default \
    --to=dan.magenheimer@oracle.com \
    --cc=pbhat@acis.ufl.edu \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-users@lists.xensource.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;
as well as URLs for NNTP newsgroup(s).