Ok, the solution has been identified:
Here are the steps
- Replace Mavericks' buggy usr/sbin/ntpd executable with the one from your backups or other Mac with the previous version of OS X.
- Delete var/db/ntp.drift
- Restart the ntpd process using the new executable
I can verify that the clock now stays in sync. It's an absolutely ridiculous solution to a simple problem but it works. Thanks Gary at the Apple forum for the solution and emailing me the new executable. Also thanks to input from bmike above.
You can define a minpoll and maxpoll time in /etc/ntp.conf. Usually the poll time is auto-adjusted by ntpd depending on some complex algorithms.
The default minpoll and maxpoll time (without specifying minpoll/maxpoll in ntp.conf) should be 6 (64 s) and 10 (1,024 s). By adding minpoll/maxpoll entries and values to ntp.conf you may force different update sequences. The values are seconds as a power of two and the allowed integer values are [3...17]. The minimal poll time is then 8 seconds and the maximal poll time is 36.4 h. You have to reboot the system or force quit ntpd with kill ...
in the Terminal or in the Activity Monitor after changing the config file to apply the modifications. The ntp daemon will be relaunched automatically after killing it.
Here is an already modified example ntp.conf with a poll time between 1024 and 4096 seconds:
...
server 160.45.10.8 minpoll 10 maxpoll 12
server 192.53.103.104 minpoll 10 maxpoll 12
server de.pool.ntp.org minpoll 10 maxpoll 12
Screenshot of the ntp traffic after changing the default config file without minpoll/maxpoll to the above example 16 minutes ago and reverting it after another 12 minutes to the original state:
The default poll time of 6 is clearly visible in the above screenshot with an update sequence of ca. 1 minute in the first 14 minutes and the last 4 minutes.
Using lower poll times [3..5] (= 8 seconds to 32 seconds) doesn't necessarily mean that the time is more accurate! Due to the extended calculations made by ntpd the time adjustments may oscillate and more inaccurate results may occur than with higher poll times (≥6).
After a system update/upgrade you may have to readjust/restore the modified config file!
Best Answer
OSX has NTP built in, and enabled by default already.
From the Apple menu -> System Preferences -> Date and Time
Make sure that Set Date and Time Automatically is checked. That's NTP. You can pick a default Apple NTP server, or set your own, eg. pick one from here: http://www.pool.ntp.org/zone/north-america
For UTC time zone, click over to the Time Zone tab, and enter "UTC - United Kingdom" as the Closest City.