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-users

[Xen-users] Re: Time synchronization issue

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: Time synchronization issue
From: Diego Molina <diegoaugustomolina@xxxxxxxxx>
Date: Tue, 19 Jul 2011 11:46:43 -0300
Delivery-date: Tue, 19 Jul 2011 07:48:04 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oStq4zQcSYwh/eeNXprF7DmmmKohO20NuQZU2pmXJxc=; b=A///jRVqXQKLs43WO70v9QYVV95Wr6Vv0cjkdH1nvBJO1PvGADxBij4aTdO84cQmf8 xHze18banGOdBzNu9eSYnhPwISuANJcRG8k3hJWqULOXBNfW5nJ6yGEAJg7NxrccVA+A 8H0hHtZdERMWdAalbKn89rV2IrQhFxzNV/XBY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAGOxLdEqnwkO8SistOkeT-RZthdio2rgQua1u13PDe0ef0qcBg@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <CAGOxLdEqnwkO8SistOkeT-RZthdio2rgQua1u13PDe0ef0qcBg@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
2011/7/7, Diego Molina <diegoaugustomolina@xxxxxxxxx>:
> Hi, I have Gentoo Linux dom0 and paravirtual domUs with Xen 3.4.2 all
> of them with `/proc/sys/xen/independent_wallclock' set to 0 (dom0 and
> domUs) but domUs aren't in sync with dom0.
> I've noticed this after a while, because I saw a recent line in a log
> file with the time in the future. Then I went to the dom0, set time
> quickly with ntpdate and started ntpd. After this I noticed that all
> domUs still had the same time so I waited... and waited to see the
> changes take effect. Nothing happened. It's been a day since then, and
> I can see dom0 and domUs are all acting as if they were configured to
> use the independent wall clock. I was able to change the time of one
> of the domUs and still see it differs both from dom0 and the other
> domUs. I googled and searched the archives but couldn't find a way
> out. It would really mean a lot to me not to have to maintain ntp in
> all domUs...
>

Hi again, it's been about six days of uptime and I started a test from
the early bootup of all the machines. The test is very simple and
consists of:

  - Provision: all gentoo systems, 4 domUs, pv. At bootup, I run
ntpdate in all machines and start ntpd in dom0 and in three domUs. The
forth one is the control. Dom0 syncs against a trusty server and domUs
against dom0. Periodically (each 7 days) the date in the 5 machines
are checked simultaneously with `date +%Y%m%d-%H%M%S-%N'. After this I
stop ntpd in one domU, wait another 7 days and process starts over. I
hope this ends up showing the degradation of time in each machine.
Sincerely, I hope there's no degradation at all :)
  When I say I run something in more than one server (somthing like
ntpdate or date) I do it "at the same time" thanks to my terminal
manager, which allows me to run commands on multiple terms at the same
time

  - First result: we have passed the first 7 days and this is the
result of the "synchronous" date command:

dom0: 20110719-114359-087087066
1st domU/ntp: 20110719-114352-634035597
2nd domU/ntp: 20110719-114352-591847797
3rd domU/ntp: 20110719-114352-551410325
domU: 20110719-114353-232691277

This test may be dummy and may not pass most statistics test proofs.
If you can improve it, if you think it's loss of time, pointless,
please help me build a worthwhile test. Do you think domUs should sync
against the foreign server? I didn't do this because I wanted domUs to
depend on dom0. If they would be independant, then it *should* be like
any other machine syncing against a time server.

Another notice: time doesn't jump anymore, I've been seeing the logs
and time keeps advancing in a clear way though not consistent (else
there would be no drifts).

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

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