WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Dom0 <> DomU clock sync

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Dom0 <> DomU clock sync
From: "Alex Tomkins" <tomkins@xxxxxxxxxxxx>
Date: Mon, 3 Sep 2007 15:54:50 +0100
Cc: Sébastien RICCIO <sr@xxxxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 03 Sep 2007 07:55:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C301D60A.1520D%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <46DC1511.6020302@xxxxxxxxxxxxxxx> <C301D60A.1520D%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 03/09/07, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:
> So long as ntpdate calls settimeofday(), this should be sufficient to update
> Xen's notion of time too. It seems that isn't happening for some reason.
>
> Do all guests (including dom0) have independent_wallclock equal to 0?
>
> What kernel are you using in dom0 (e.g., vendor kernel?).
>
> Ntpd in dom0 would be an interesting thing to try. That should cause dom0 to
> periodically (every few minutes) push its time down to Xen to be picked up
> by all domUs. But really ntpdate should be doing the right thing...
>
> In our kernels it should be *impossible* for dom0 and domU time to diverge
> when independent_wallclock is set to zero everywhere...
>
>  -- Keir

It occurs with ntpd in dom0 as well:

tomkins@host1 ~ $ date
Mon Sep  3 14:42:04 UTC 2007
testdomu:~# date
Mon Sep  3 14:43:11 UTC 2007

dom0 runs ntpd, the only thing which causes the domUs to correct
themselves is hwclock in dom0.  It's a fairly old machine though and
would need to be updated for testing:

Linux host1 2.6.16.29-xen-host1-1 #1 Sat Nov 25 19:57:50 Local time
zone must be set--see zic manu x86_64 AMD Athlon(tm) 64 Processor
3700+ AuthenticAMD GNU/Linux

However I've been moving all Xen servers away from Gentoo and
switching them to CentOS which doesn't seem to have the same problem.
I remember someone else having similar problems:

<http://lists.xensource.com/archives/html/xen-users/2006-11/msg00861.html>

I've still got a couple of servers which haven't been updated to
CentOS yet.  I could upgrade them to a more recent Xen release as well
as a more recent kernel to test it.


-- 
Alex Tomkins <tomkins@xxxxxxxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>