NTPD – How Far is ‘Too Far Off’ and Handling Heavy Load

clock-synchronizationhigh-loadntpd

In many primers on ntpd, like this one, there's always a warning that ntpd will stop resetting the clock "[if] your clock is too far off."

How far off is "too far off"?

Also, if a server takes a sudden jump to heavy load, for example from total idleness to 100% CPU, will the increase in temperature cause the clock to skew to "too far off"?

Can ntpd be configured to reset the clock even if the time is "too far off" or at least make "too far off" a little farther?

Best Answer

First off, the default max difference is 1000s as others have mentioned. As @kyle stated you can use the -g flag to ignore this ONE time only to initially set your clock.

After that you really shouldn't see your clock drifting by 1000s between updates even under highload, and if you do you really need to replace the clock. The settings in the configuration you need are minpoll and maxpoll. These will allow you to set the interval duration to the power of 2 (e.g. 10 means 210 = 1024 s).

Please note that your system is likely not going to drift substantially even under high load, and the default settings should keep it in check. You don't want to bombard NTP servers with updates every second as you are wasting resources it will get you blocked and most likely a call to your ISP NOC. If you really need extremely accurate time use GPS or setup your own NTP server.

Related Topic