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?
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
andmaxpoll
. 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.
NTPD can adjust your clock in slow increments if it's off, clock slewing. The idea behind that is that slow steps won't cause issues with software timers, strange gaps in log files etc.
According to the manual page ntpd won't work if your clock is more then 1000 seconds off.
Since slewing the clock to adjust it by 1000 seconds will take at least 3 weeks and during that time all date/timestamps are still off, that doesn't seem unreasonable.
The
ntpdate
command has a -b switch to simply adjust the time without slewing. This is useful in cases where the the local system clock deviates too much from the "correct" time.This is specified in
man ntpd
, and you override it you might be interested in the-g
option (Note the "which is 1000 s by default":You can adjust this in
ntpd.conf
. If you want to disable it you can settinker panic 0
. See the Miscellaneous Options documentation to learn more.