From: "Alex Tomkins" Subject: Re: Dom0 <> DomU clock sync Date: Mon, 3 Sep 2007 15:54:50 +0100 Message-ID: <23aa8c3c0709030754t14d0b28fsff84dc9d6764a650@mail.gmail.com> References: <46DC1511.6020302@swisscenter.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: =?ISO-8859-1?Q?S=E9bastien_RICCIO?= , xen-devel List-Id: xen-devel@lists.xenproject.org On 03/09/07, Keir Fraser 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: 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