1

See: Clock synchronization quality on Windows Azure?

This is not meant as a rant, it is just curiosity.

Is a computer really drifting more than a second in a single day? I can barely imagine that.

Why not a sync every day to a time server. This should have minimal negative impact compared to the advantages of a (relative) consistent clock among servers.

My gut feeling would be that the biggest problem would be latency, but even that would be just a few ms after every sync. What am I missing?

Dirk Boer
  • 455
  • 1
  • 3
  • 9

1 Answers1

6

Is a computer really drifting more than a second in a single day? I can barely imagine that.

Yes, some do. Especially in virtualized environments. Running inside a virtual Machine (as it is the case on Azure) invalidates some fundamental assumptions that are used to keep time, making it even more difficult than on physical hardware. A modern computer is a lot more complex then a digital clock.

Why not a sync every day to a time server. This should have minimal negative impact compared to the advantages of a (relative) consistent clock among servers.

That's what people do. It's called NTP, but even that is more difficult then you might imagine, as some services need continuous time so jumping time forward or backward to adjust a clock is not acceptable and you end up slowing down or speeding up the system clock, which takes time.

My gut feeling would be that the biggest problem would be latency, but even that would be just a few ms after every sync.

NTP tries to adjust for latency already, and there are improved variants with even lower latency.

Sven
  • 97,248
  • 13
  • 177
  • 225
  • Hi Sven, thanks for your answer. Do you have maybe have more information why it is so difficult especially in virtual machines? What is so special about that environment than that they don't just use the machine clock as a base with an offset per VM? – Dirk Boer Feb 01 '15 at 10:27
  • 2
    http://www.vmware.com/files/pdf/Timekeeping-In-VirtualMachines.pdf – Sven Feb 01 '15 at 11:38
  • Time sync is important, even to the second: http://www.wired.com/2015/01/leap-second-rattle-internet-theres-plot-kill/ – Simon W Feb 02 '15 at 02:25