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] [PATCH] linux-2.6.18-xen.hg: fix interaction of NTP and

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] linux-2.6.18-xen.hg: fix interaction of NTP and dom0->xen time updates
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Wed, 18 Mar 2009 14:42:43 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 18 Mar 2009 07:43:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <42eb677a-f409-4e02-bdd3-fac224d0344f@default>
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>
References: <20090318111410.GC11733@xxxxxxxxxxxxxxxxxxxxx> <42eb677a-f409-4e02-bdd3-fac224d0344f@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17 (2007-11-01)
At 14:31 +0000 on 18 Mar (1237386684), Dan Magenheimer wrote:
> Just checking... this provides improvement when:
> 
> 1) the patch is applied to dom0
> 2) dom0 is running NTP
> 3) pv domU has independent_wallclock=0
> 4) pv domU is NOT running NTP

Yes, exactly that.  Xen's wallclock tends to sawtooth, drifting with the
underlying stime and being pulled back whenever dom0 updates it.
Without this patch, it pulls back only when ntpd in dom0 calls adjtime
(allowing for up to 100ms of drift on my test machine).  With the patch
it updates every minute, as intended (still sawtoothing but not as
wildly).

> Correct?  Does it also help when:
> 
> 1) the patch is applied to pv domU
> 2) pv domU has independent_wallclock=1
> 3) pv domU IS running NTP

Not sure, but I would guess not -- with independent_wallclock==1, domU
shuold be ignoring the wc_sec and wc_nsec values provided by Xen, which
are the only things affected by this patch.

> Are there any other configurations where it will
> help?  Are there any configurations where it might
> cause problems?

I don't think so, to either question.  If there's some bad condition
that is triggered by the act of pulling time back in sync rather than
the size of the correction, it might be more frequent with the more
frequent updates.  Otherwise, it's just making an existing sawtooth a
bit less blatant.

Tim. 

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]

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

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