Skip to contentSkip to conversation

Compenstating for clock drift

DISCUSSION Jon Smirl 2 participants 2 messages Mar 2, 2006

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw
Quoted 1 line

From my logs I can see that my system clock is consistently drifting

about 3 seconds every 24hrs and ntp is faithfully correcting it. Can the kernel track long term data like this and insert/remove a few extra ticks to minimize the size of the ntp drift corrections?

--
Jon Smirl
[email protected]

#1 lore raw
Quoted 4 lines · Jon Smirl

From my logs I can see that my system clock is consistently drifting about 3 seconds every 24hrs and ntp is faithfully correcting it. Can the kernel track long term data like this and insert/remove a few extra ticks to minimize the size of the ntp drift corrections?

ntp should do that anyway - check you have a drift file defined in ntp.conf

# Drift file. Put this in a directory which the daemon can write to. # No symbolic links allowed, either, since the daemon updates the file

# by creating a temporary in the same directory and then rename()'ing
# it to the file.
#
driftfile /etc/ntp/drift

Over time it will adjust to suit and step the changes gracefully.

Nick