Re: ntpd: switch drift file to ppm

2015-01-13 Thread Christian Weisgerber
On 2015-01-13, Theo de Raadt wrote: >> > Hmm, I guess we could skip the compatibility handling completely >> > and just let ntpd re-discover the drift. >> >> Heh. Sounds plausible. > > Smaller diff. I started with 2.679024e-05 in ntpd.drift and pretty soon got this: adjusting clock frequency b

Re: ntpd: switch drift file to ppm

2015-01-13 Thread Theo de Raadt
> > Hmm, I guess we could skip the compatibility handling completely > > and just let ntpd re-discover the drift. Starting with an adjustment > > scaled by 1e-6 is essentially the same as starting with 0 on a newly > > installed machine. > > Heh. Sounds plausible. Smaller diff. Wouldn't work t

Re: ntpd: switch drift file to ppm

2015-01-13 Thread Mark Kettenis
> Date: Tue, 13 Jan 2015 21:27:25 +0100 > From: Christian Weisgerber > > Mark Kettenis: > > > Does this in any way force a write of the drift file or are you > > relying on ntpd deciding that it has a better estimate of the > > drift somewhere in the next year? > > ntpd always updates the drift

Re: ntpd: switch drift file to ppm

2015-01-13 Thread Christian Weisgerber
Mark Kettenis: > Does this in any way force a write of the drift file or are you > relying on ntpd deciding that it has a better estimate of the > drift somewhere in the next year? ntpd always updates the drift file when it adjusts the frequency, and it always adjusts the frequency when it is syn

Re: ntpd: switch drift file to ppm

2015-01-13 Thread Mark Kettenis
> Date: Tue, 13 Jan 2015 19:36:58 +0100 > From: Christian Weisgerber > > Here's a patch to switch the drift file from an unscaled frequency > offset to ppm. The latter format is compatible with that of ntp.org. > This allows easy switching between ntpd daemons. (I asked PHK and > ntimed will pr

Re: ntpd: switch drift file to ppm

2015-01-13 Thread Theo de Raadt
Wonderful strategy. ok deraadt > Here's a patch to switch the drift file from an unscaled frequency > offset to ppm. The latter format is compatible with that of ntp.org. > This allows easy switching between ntpd daemons. (I asked PHK and > ntimed will probably not have a drift file at all.) >

ntpd: switch drift file to ppm

2015-01-13 Thread Christian Weisgerber
Here's a patch to switch the drift file from an unscaled frequency offset to ppm. The latter format is compatible with that of ntp.org. This allows easy switching between ntpd daemons. (I asked PHK and ntimed will probably not have a drift file at all.) Old drift files are handled automagically.