Linode Forum Index Linode Forum
Linode Community Forums
 


Clock drift!

Click here to go to the original topic
Goto page Previous  1, 2
 
       Linode Forum Index -> General Discussion
Author Message
jed



Joined: 28 Mar 2009
Posts: 394
Location: New Jersey

Posted: Mon Mar 08, 2010 10:38 am    Post subject:  

rsk wrote: Urm, if I can ask for clarification... is NTP necessary only when using paravirt kernels, or with the "oldstyle Xen" 2.6.18.8 too?
ISTR that one doesn't let me mess with the clock at all...
Until you decouple from the host clock by twiddling this knob in /proc:
Code: 10:36 jsmith@staff% uname -a
Linux staff.linode.com 2.6.18.8-linode22 #1 SMP Tue Nov 10 16:12:12 UTC 2009 i686 GNU/Linux
10:36 jsmith@staff% cat /proc/sys/xen/independent_wallclock
0

When set to 1, you can set your clock independently of the host.

Native Xen kernels (i.e., 2.6.18 and pals) have this configuration knob, and paravirtualized kernels do not -- their clock is automatically decoupled.
Back to top  
rsk



Joined: 24 Nov 2009
Posts: 306

Posted: Mon Mar 08, 2010 12:37 pm    Post subject:  

Danke. :)
Back to top  
bryantrv



Joined: 11 Dec 2009
Posts: 126

Posted: Mon Mar 08, 2010 2:53 pm    Post subject:  

jed wrote: rsk wrote: Urm, if I can ask for clarification... is NTP necessary only when using paravirt kernels, or with the "oldstyle Xen" 2.6.18.8 too?
ISTR that one doesn't let me mess with the clock at all...
Until you decouple from the host clock by twiddling this knob in /proc:
Code: 10:36 jsmith@staff% uname -a
Linux staff.linode.com 2.6.18.8-linode22 #1 SMP Tue Nov 10 16:12:12 UTC 2009 i686 GNU/Linux
10:36 jsmith@staff% cat /proc/sys/xen/independent_wallclock
0

When set to 1, you can set your clock independently of the host.

Native Xen kernels (i.e., 2.6.18 and pals) have this configuration knob, and paravirtualized kernels do not -- their clock is automatically decoupled.

Dumb question- do you simply edit the file (cat /proc/sys/xen/independent_wallclock ) and reboot?
Back to top  
Alucard



Joined: 13 Feb 2008
Posts: 116

Posted: Mon Mar 08, 2010 3:05 pm    Post subject:  

bryantrv wrote: Dumb question- do you simply edit the file (cat /proc/sys/xen/independent_wallclock ) and reboot?
No, since /proc will be recreated at boot. Set
xen.independent_wallclock = 1
in /etc/sysctl.conf then run "sysctl -p". You do not have to reboot; it will be set on subsequent boots.
Back to top  
bryantrv



Joined: 11 Dec 2009
Posts: 126

Posted: Mon Mar 08, 2010 4:17 pm    Post subject:  

Thanks- I should have known that :).
Back to top  
mnordhoff



Joined: 03 May 2008
Posts: 450

Posted: Fri Mar 12, 2010 11:02 am    Post subject: Re: Clock drift!  

kbrantley wrote: Hey, linode people! Any chance we could get an internal ntp server to sync to? :)
Aside from jtsage's link, there are other public NTP servers hosted on Linodes, too; some are in the stratum 2 list.

kbrantley wrote: edit: hey linode people! How about opening up the ntp daemon on the hosts to the VMs they support? I like that idea even better.
It already is. Try it. There are no service guarantees, though.

jeffml wrote: The statistics geek in me would love to see a graph of requests for the top of the minute requests. It would seem that the spike would relate to the amount of drift in clocks for those that request them. Probably more like a prolonged 15 second spike on each side of the top of the minute?
I don't have any graphs, but in my experience, the spike peaks about 4 seconds after the hour. Traffic may have started increasing a few seconds before the hour, but not very significantly. It stays unusually high for at least a few minutes, and, of course, there are smaller spikes every minute. (The spike 1 minute after the hour is pretty significant, too.)
Back to top  
H3LR4ZR



Joined: 27 Apr 2009
Posts: 59
Location: Boise, ID

Posted: Fri Mar 12, 2010 2:59 pm    Post subject:  

Just use the pool. Thats what its there for.

http://www.pool.ntp.org/en/use.html

You could also add time.xenscale.com as well. Its a Linode in Dallas and a pool contributor.
Back to top  
kbrantley



Joined: 21 Sep 2007
Posts: 77

Posted: Sun Mar 14, 2010 9:38 pm    Post subject:  

mnordhoff wrote: kbrantley wrote: edit: hey linode people! How about opening up the ntp daemon on the hosts to the VMs they support? I like that idea even better.
It already is. Try it. There are no service guarantees, though.

Check that out.

*is perfectly happy*
Back to top  
 
       Linode Forum Index -> General Discussion Goto page Previous  1, 2
Page 2 of 2