* clock drift in Xen 4.0.0
@ 2010-05-25 6:50 James Harper
2010-05-25 6:55 ` Keir Fraser
0 siblings, 1 reply; 14+ messages in thread
From: James Harper @ 2010-05-25 6:50 UTC (permalink / raw)
To: xen-devel
Are there any known problems with clock drift in Xen 4.0.0? One DomU
with an uptime of 49 days is now 7 minutes in front. I never noticed the
problem before I upgraded.
/proc/sys/xen/independent_wallclock=0
James
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: clock drift in Xen 4.0.0
2010-05-25 6:50 clock drift in Xen 4.0.0 James Harper
@ 2010-05-25 6:55 ` Keir Fraser
2010-05-25 7:01 ` James Harper
0 siblings, 1 reply; 14+ messages in thread
From: Keir Fraser @ 2010-05-25 6:55 UTC (permalink / raw)
To: James Harper, xen-devel@lists.xensource.com
On 25/05/2010 07:50, "James Harper" <james.harper@bendigoit.com.au> wrote:
> Are there any known problems with clock drift in Xen 4.0.0? One DomU
> with an uptime of 49 days is now 7 minutes in front. I never noticed the
> problem before I upgraded.
>
> /proc/sys/xen/independent_wallclock=0
Are you running NTP? 100ppm drift isn't unbelievable without external
synchronisation.
-- Keir
> James
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: clock drift in Xen 4.0.0
2010-05-25 6:55 ` Keir Fraser
@ 2010-05-25 7:01 ` James Harper
2010-05-25 7:58 ` Keir Fraser
2010-05-25 20:46 ` Jeremy Fitzhardinge
0 siblings, 2 replies; 14+ messages in thread
From: James Harper @ 2010-05-25 7:01 UTC (permalink / raw)
To: Keir Fraser, xen-devel
> On 25/05/2010 07:50, "James Harper" <james.harper@bendigoit.com.au>
wrote:
>
> > Are there any known problems with clock drift in Xen 4.0.0? One DomU
> > with an uptime of 49 days is now 7 minutes in front. I never noticed
the
> > problem before I upgraded.
> >
> > /proc/sys/xen/independent_wallclock=0
>
> Are you running NTP? 100ppm drift isn't unbelievable without external
> synchronisation.
>
That's 7 minutes in front of the Dom0 that it's sitting on. The Dom0
runs ntp. Another DomU on the same system is ahead by a similar amount
(9 minutes over 74 days). I thought that with independent_wallclock=0
that they should stay in step.
I actually just noticed that I'm running 4.0.0-rc6, not 4.0.0 proper...
d'oh. I think I should probably update before thinking about it much
more.
James
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: clock drift in Xen 4.0.0
2010-05-25 7:01 ` James Harper
@ 2010-05-25 7:58 ` Keir Fraser
2010-05-25 14:34 ` Dan Magenheimer
2010-05-25 20:46 ` Jeremy Fitzhardinge
1 sibling, 1 reply; 14+ messages in thread
From: Keir Fraser @ 2010-05-25 7:58 UTC (permalink / raw)
To: James Harper, xen-devel@lists.xensource.com
On 25/05/2010 08:01, "James Harper" <james.harper@bendigoit.com.au> wrote:
>> Are you running NTP? 100ppm drift isn't unbelievable without external
>> synchronisation.
>>
>
> That's 7 minutes in front of the Dom0 that it's sitting on. The Dom0
> runs ntp. Another DomU on the same system is ahead by a similar amount
> (9 minutes over 74 days). I thought that with independent_wallclock=0
> that they should stay in step.
>
> I actually just noticed that I'm running 4.0.0-rc6, not 4.0.0 proper...
> d'oh. I think I should probably update before thinking about it much
> more.
It probably depends on your dom0 and domU kernels also. Have they both been
observed to behave 'properly' before? In particular I'm not sure pv_ops
behaves same as ealrier kernels.
-- Keir
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: clock drift in Xen 4.0.0
2010-05-25 7:58 ` Keir Fraser
@ 2010-05-25 14:34 ` Dan Magenheimer
2010-05-25 14:42 ` Keir Fraser
0 siblings, 1 reply; 14+ messages in thread
From: Dan Magenheimer @ 2010-05-25 14:34 UTC (permalink / raw)
To: Keir Fraser, James Harper, xen-devel
> From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
> Subject: Re: [Xen-devel] clock drift in Xen 4.0.0
>
> >> Are you running NTP? 100ppm drift isn't unbelievable without
> external
> >> synchronisation.
> >
> > That's 7 minutes in front of the Dom0 that it's sitting on. The Dom0
> > runs ntp. Another DomU on the same system is ahead by a similar
> amount
> > (9 minutes over 74 days). I thought that with independent_wallclock=0
> > that they should stay in step.
> >
> > I actually just noticed that I'm running 4.0.0-rc6, not 4.0.0
> proper...
> > d'oh. I think I should probably update before thinking about it much
> > more.
>
> It probably depends on your dom0 and domU kernels also. Have they both
> been
> observed to behave 'properly' before? In particular I'm not sure pv_ops
> behaves same as ealrier kernels.
James --
"DomU" may imply PV but just to verify is this a PV domain or HV?
If an HV, Keir, didn't the default timer_mode change in 4.0?
Also, if HV, isn't independent_wallclock ignored?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: clock drift in Xen 4.0.0
2010-05-25 14:34 ` Dan Magenheimer
@ 2010-05-25 14:42 ` Keir Fraser
2010-05-25 14:58 ` Dan Magenheimer
0 siblings, 1 reply; 14+ messages in thread
From: Keir Fraser @ 2010-05-25 14:42 UTC (permalink / raw)
To: Dan Magenheimer, James Harper, xen-devel@lists.xensource.com
On 25/05/2010 15:34, "Dan Magenheimer" <dan.magenheimer@oracle.com> wrote:
> "DomU" may imply PV but just to verify is this a PV domain or HV?
>
> If an HV, Keir, didn't the default timer_mode change in 4.0?
Default is still 1 afaiaa.
> Also, if HV, isn't independent_wallclock ignored?
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: clock drift in Xen 4.0.0
2010-05-25 14:42 ` Keir Fraser
@ 2010-05-25 14:58 ` Dan Magenheimer
0 siblings, 0 replies; 14+ messages in thread
From: Dan Magenheimer @ 2010-05-25 14:58 UTC (permalink / raw)
To: Keir Fraser, James Harper, xen-devel
> From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
> Subject: Re: [Xen-devel] clock drift in Xen 4.0.0
>
> On 25/05/2010 15:34, "Dan Magenheimer" <dan.magenheimer@oracle.com>
> wrote:
>
> > "DomU" may imply PV but just to verify is this a PV domain or HV?
> >
> > If an HV, Keir, didn't the default timer_mode change in 4.0?
>
> Default is still 1 afaiaa.
It was changed in cs 18554, September 2008, so I think that
was actually between 3.3 and 3.4.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: clock drift in Xen 4.0.0
2010-05-25 7:01 ` James Harper
2010-05-25 7:58 ` Keir Fraser
@ 2010-05-25 20:46 ` Jeremy Fitzhardinge
2010-05-26 9:33 ` James Harper
1 sibling, 1 reply; 14+ messages in thread
From: Jeremy Fitzhardinge @ 2010-05-25 20:46 UTC (permalink / raw)
To: James Harper; +Cc: xen-devel, Keir Fraser
On 05/25/2010 12:01 AM, James Harper wrote:
> That's 7 minutes in front of the Dom0 that it's sitting on. The Dom0
> runs ntp. Another DomU on the same system is ahead by a similar amount
> (9 minutes over 74 days). I thought that with independent_wallclock=0
> that they should stay in step.
>
> I actually just noticed that I'm running 4.0.0-rc6, not 4.0.0 proper...
> d'oh. I think I should probably update before thinking about it much
> more.
>
What domU and dom0 kernel are you running? pvops always has independent
wallclock.
J
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: clock drift in Xen 4.0.0
2010-05-25 20:46 ` Jeremy Fitzhardinge
@ 2010-05-26 9:33 ` James Harper
2010-05-26 9:48 ` Keir Fraser
0 siblings, 1 reply; 14+ messages in thread
From: James Harper @ 2010-05-26 9:33 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: xen-devel, Keir Fraser
>
> On 05/25/2010 12:01 AM, James Harper wrote:
> > That's 7 minutes in front of the Dom0 that it's sitting on. The Dom0
> > runs ntp. Another DomU on the same system is ahead by a similar
amount
> > (9 minutes over 74 days). I thought that with
independent_wallclock=0
> > that they should stay in step.
> >
> > I actually just noticed that I'm running 4.0.0-rc6, not 4.0.0
proper...
> > d'oh. I think I should probably update before thinking about it much
> > more.
> >
>
> What domU and dom0 kernel are you running? pvops always has
independent
> wallclock.
>
Dom0 is 2.6.31.12 (pvops), domU is 2.6.18.8 (not pvops). Which one
matters here?
James
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: clock drift in Xen 4.0.0
2010-05-26 9:33 ` James Harper
@ 2010-05-26 9:48 ` Keir Fraser
2010-05-26 9:53 ` James Harper
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Keir Fraser @ 2010-05-26 9:48 UTC (permalink / raw)
To: James Harper, Jeremy Fitzhardinge; +Cc: xen-devel@lists.xensource.com
On 26/05/2010 10:33, "James Harper" <james.harper@bendigoit.com.au> wrote:
>> What domU and dom0 kernel are you running? pvops always has
> independent
>> wallclock.
>
> Dom0 is 2.6.31.12 (pvops), domU is 2.6.18.8 (not pvops). Which one
> matters here?
I think pv_ops doesn't play with dependent-wallclock either way round: It
won't resync its wallclock with Xen when running as domU; nor will it
periodically push its wallclock down to Xen when running as dom0. So if you
have pv_ops as the dom0 or the domU, you'd better run NTP in the domU.
-- Keir
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: clock drift in Xen 4.0.0
2010-05-26 9:48 ` Keir Fraser
@ 2010-05-26 9:53 ` James Harper
2010-05-26 9:59 ` Keir Fraser
2010-05-26 11:25 ` Stefano Stabellini
2010-05-26 13:26 ` James Harper
2 siblings, 1 reply; 14+ messages in thread
From: James Harper @ 2010-05-26 9:53 UTC (permalink / raw)
To: Keir Fraser, Jeremy Fitzhardinge; +Cc: xen-devel
>
> On 26/05/2010 10:33, "James Harper" <james.harper@bendigoit.com.au>
wrote:
>
> >> What domU and dom0 kernel are you running? pvops always has
> > independent
> >> wallclock.
> >
> > Dom0 is 2.6.31.12 (pvops), domU is 2.6.18.8 (not pvops). Which one
> > matters here?
>
> I think pv_ops doesn't play with dependent-wallclock either way round:
It
> won't resync its wallclock with Xen when running as domU; nor will it
> periodically push its wallclock down to Xen when running as dom0. So
if you
> have pv_ops as the dom0 or the domU, you'd better run NTP in the domU.
>
Thanks. Will it ever support dependent-wallclock?
James
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: clock drift in Xen 4.0.0
2010-05-26 9:53 ` James Harper
@ 2010-05-26 9:59 ` Keir Fraser
0 siblings, 0 replies; 14+ messages in thread
From: Keir Fraser @ 2010-05-26 9:59 UTC (permalink / raw)
To: James Harper, Jeremy Fitzhardinge; +Cc: xen-devel@lists.xensource.com
On 26/05/2010 10:53, "James Harper" <james.harper@bendigoit.com.au> wrote:
>> I think pv_ops doesn't play with dependent-wallclock either way round:
> It
>> won't resync its wallclock with Xen when running as domU; nor will it
>> periodically push its wallclock down to Xen when running as dom0. So
> if you
>> have pv_ops as the dom0 or the domU, you'd better run NTP in the domU.
>>
>
> Thanks. Will it ever support dependent-wallclock?
I don't think Jeremy likes dependent-wallclock. :-)
K.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: clock drift in Xen 4.0.0
2010-05-26 9:48 ` Keir Fraser
2010-05-26 9:53 ` James Harper
@ 2010-05-26 11:25 ` Stefano Stabellini
2010-05-26 13:26 ` James Harper
2 siblings, 0 replies; 14+ messages in thread
From: Stefano Stabellini @ 2010-05-26 11:25 UTC (permalink / raw)
To: Keir Fraser
Cc: Jeremy Fitzhardinge, James Harper, xen-devel@lists.xensource.com
On Wed, 26 May 2010, Keir Fraser wrote:
> On 26/05/2010 10:33, "James Harper" <james.harper@bendigoit.com.au> wrote:
>
> >> What domU and dom0 kernel are you running? pvops always has
> > independent
> >> wallclock.
> >
> > Dom0 is 2.6.31.12 (pvops), domU is 2.6.18.8 (not pvops). Which one
> > matters here?
>
> I think pv_ops doesn't play with dependent-wallclock either way round: It
> won't resync its wallclock with Xen when running as domU; nor will it
> periodically push its wallclock down to Xen when running as dom0. So if you
> have pv_ops as the dom0 or the domU, you'd better run NTP in the domU.
A while ago I sent a patch to pvops to fix this problem (look for
"[PATCH] [PVOPS] [UPDATE] dom0 sync xen wallclock" in the
archives), but Jeremy didn't like it :)
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: clock drift in Xen 4.0.0
2010-05-26 9:48 ` Keir Fraser
2010-05-26 9:53 ` James Harper
2010-05-26 11:25 ` Stefano Stabellini
@ 2010-05-26 13:26 ` James Harper
2 siblings, 0 replies; 14+ messages in thread
From: James Harper @ 2010-05-26 13:26 UTC (permalink / raw)
To: Keir Fraser, Jeremy Fitzhardinge; +Cc: xen-devel
>
> >> What domU and dom0 kernel are you running? pvops always has
> > independent
> >> wallclock.
> >
> > Dom0 is 2.6.31.12 (pvops), domU is 2.6.18.8 (not pvops). Which one
> > matters here?
>
> I think pv_ops doesn't play with dependent-wallclock either way round:
It
> won't resync its wallclock with Xen when running as domU; nor will it
> periodically push its wallclock down to Xen when running as dom0. So
if you
> have pv_ops as the dom0 or the domU, you'd better run NTP in the domU.
>
Just for the record, with a pvops dom0 and a non-pvops domu, you still
need to set independent_wallclock=1 for ntp to be able to modify the
clock. Without that change, ntp tells me:
time reset -409.699016 s
...
time reset -409.776693 s
...
time reset -409.854404 s
...
time reset -409.930385 s
...
time reset -410.009187 s
but never actually adjusts the time!
James
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2010-05-26 13:26 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-25 6:50 clock drift in Xen 4.0.0 James Harper
2010-05-25 6:55 ` Keir Fraser
2010-05-25 7:01 ` James Harper
2010-05-25 7:58 ` Keir Fraser
2010-05-25 14:34 ` Dan Magenheimer
2010-05-25 14:42 ` Keir Fraser
2010-05-25 14:58 ` Dan Magenheimer
2010-05-25 20:46 ` Jeremy Fitzhardinge
2010-05-26 9:33 ` James Harper
2010-05-26 9:48 ` Keir Fraser
2010-05-26 9:53 ` James Harper
2010-05-26 9:59 ` Keir Fraser
2010-05-26 11:25 ` Stefano Stabellini
2010-05-26 13:26 ` James Harper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).