OpenNTPD – How Often Does OpenNTPD Update the Time?

ntpntpdopenntpd

Neither the openntpd nor the ntpd.conf manpage have this information.

Best Answer

Time updating happens on a continuous basis. The daemon keeps track of how the time-rate of the hardware clock drifts from the time reported by the upstream sources. It polls the upstream sources based on an algorithm and can change. The actual poll-rate is a power-of-two in seconds. You can query this information through the ntpq command.

Different time daemons have different defaults for what it'll allow the maximum poll time to be. I've seen it go as long as a couple of days between polls of upstream servers, and others where it never goes past about 20 minutes. The minpoll and maxpoll values on your server lines in the ntpd.conf file itself will provide, if set, the exact power-of-two for that upstream server.

Upstream polling is used to determine how to modify the drift rate. It is very important for the NTP daemon to not hard-set time, instead it just increases the length of a second by a tiny amount for a while until the local time converges with the time reported by the upstream time servers.