All of lore.kernel.org
 help / color / mirror / Atom feed
From: maney@two14.net (Martin Maney)
To: xen-devel@lists.sourceforge.net
Subject: Re: time drift on dom0
Date: Mon, 17 Jan 2005 01:34:18 -0600	[thread overview]
Message-ID: <20050117073418.GA30500@furrr.two14.net> (raw)
In-Reply-To: <E1Cq6Xn-0005ex-00@mta1.cl.cam.ac.uk>

On Sun, Jan 16, 2005 at 09:17:58AM +0000, Keir Fraser wrote:
> If you run NTPD in DOM0 then all other domains will be sync'ed to
> DOM0's accurate timebase. This is how we run our own machines.

Excellent!  I didn't recall noticing any timing problems when I was
playing with Xen (on a machine that has since moved on to other uses,
so I don't have a working Xen testbed right now), but it was already
running NTP in the system image that became dom0.

Is this syncing what gives rise under some circumstances to the clock
moving backwards that I've seen mentioned here?  Never saw that, but I
never got around to pushing that box hard.

> The two main places we get drift from when not using NTP are
> inaccuracy of the PIT oscillator (can easily be 100 or more ppm), and

Yep.  As I say, I've seen at least a couple different machines that run
right around 200 ppm (one fast and one slow, as it happens) under
non-Xen Linux.  The frequencey correction is quite stable over the half
year or so I've been logging the NTP stats.

> Not much we can do about the former -- we could deal with the latter
> by stretching/shrinking jiffies or by inserting leap jiffies. 

Seems like a waste of effort, given errors an order of magnitude larger
than the nominal setting error.  If you want accurate time, you need to
run NTP anyway.  :-)

Or... was it adjtimex that I used to use back in the dark ages of
dialup?  Would that work to trim the dom0 clock error (it was more or
less a manual correction for drift, as I recall)?

-- 
Vs lbh pna ernq guvf, lbh'er va ivbyngvba bs
gur Qvtvgny Zvyyraavhz Pbclevtug Npg.  -- anon.



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

      reply	other threads:[~2005-01-17  7:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-15 22:46 time drift on dom0 Adam Heath
2005-01-15 23:24 ` Anthony Liguori
2005-01-15 23:38   ` Andi Kleen
2005-01-15 23:31 ` Adam Heath
2005-01-16  4:21   ` Martin Maney
2005-01-16  9:17     ` Keir Fraser
2005-01-17  7:34       ` Martin Maney [this message]

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=20050117073418.GA30500@furrr.two14.net \
    --to=maney@two14.net \
    --cc=xen-devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.