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] domU time drifting

To: Carl Jones <carl@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] domU time drifting
From: Keir Fraser <keir@xxxxxxx>
Date: Mon, 13 Dec 2010 07:11:12 +0000
Cc:
Delivery-date: Sun, 12 Dec 2010 23:12:05 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:user-agent:date :subject:from:to:message-id:thread-topic:thread-index:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=ScspVNswVVtIgtLO25mIhmPOwcdE74gSzWR+othKXH8=; b=o7NXNQMbYcyK/8iUURXZmLKJyYda016FsN/5JunfskgPb/7gl6922leeqMtwVMIADx 7gO+xmzgs16y1w2j6Lf7zhGzqVGCDUBeatBmxaXqzvbdfi4jJcQRPPsq17Ud+2NZrSra ERa4RCSqQrZM8Qc9jiPEIb/YfwFF46KZvDvQI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=egs+4AQYiBpuQA9Y1gyR2qZYMIApl7JPey+FSFquiJIUuXV+k8y7nTG8q0FohDQ5lw zlOkXBi6UajHtomcinUz0ITL8u925K4I4aWRvl//qjhvyus5SvB5Eni+Ht0s73sORNTd QSeAC0d/KtHW584cGH9Tj5BjoaRB6mzmhBj3w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTimP3+Jen1s0=TVhU3LOq--d6AsDkMYW5Z0zMajM@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcualOxFhMxcz6y1/U6aikoFr/KuwQ==
Thread-topic: [Xen-devel] domU time drifting
User-agent: Microsoft-Entourage/12.27.0.100910
If the domU kernels are pv_ops kernels, they don't keep their time in sync
with dom0 after boot. You have to run ntpd in every domU.

 -- Keir

On 13/12/2010 00:12, "Carl Jones" <carl@xxxxxxxxxxxxx> wrote:

> Hi,
> 
> I am trying to track down the cause of time drifting on our domUs.
> We're using various versions of Xen, and various domU kernels.
> 
> dom0s all run ntpd and are in sync. No issues there.
> 
> dom0s are all running CentOS 5 64bit. domUs run various distributions
> (the examples below happen to be Debian and Ubuntu only).
> 
> domUs that do not run ntpd tend to drift (both forwards and
> backwards). domUs are using clocksource=xen. dom0s are using
> clocksource=jiffies.
> 
> Some example setups:
> 
> Xen: 3.4.3
> dom0: 2.6.18.8 x86_64 based on el5 sources
> domU: 2.6.30.5 i386
> domU uptime: 68 days
> 
> dom0: Sun Dec 12 23:45:59 UTC 2010
> domU: Sun Dec 12 23:44:48 UTC 2010
> 
> Xen: 3.3.1
> dom0 2.6.18.8 x86_64 from xen.org
> domU: 2.6.33.3 i386
> domU uptime: 34 days
> 
> dom0: Sun Dec 12 23:51:20 UTC 2010
> domU: Sun Dec 12 23:50:39 UTC 2010
> 
> Xen: 3.4.3
> dom0: 2.6.18.8 x86_64 based on el5 sources
> domU: 2.6.30.5 i386
> domU uptime: #1 28 days #2 26 days
> 
> dom0: Sun Dec 12 23:58:23 UTC 2010
> domU #1: Sun Dec 12 23:58:03 UTC 2010
> domU #2: Sun Dec 12 23:58:04 UTC 2010
> 
> The last example is interesting. Two domUs on the same host have the
> same (incorrect) time. Same domU kernel. Different uptime.
> 
> I've tried suggestions in bug reports like these:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534978
> http://wiki.debian.org/Xen#A.27clocksource.2BAC8-0.3ATimewentbackwards.27
> http://my.opera.com/marcomarongiu/blog/2010/08/18/debugging-ntp-again-part-4-a
> nd-last
> 
> But so far the problem persists.
> 
> Is there anything we can do on the host side of things to prevent
> domUs from drifting? With clocksource=xen shouldn't the domUs stay in
> sync provided the host keeps the correct time?
> 
> Please let me know if I can provide further details.
> 
> Regards,
> Carl
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



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

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