Time Synchronizing Between Two Servers

RW fbsd06 at mlists.homeunix.com
Mon May 7 22:02:51 UTC 2007


On Mon, 7 May 2007 12:30:29 -0700
Chuck Swiger <cswiger at mac.com> wrote:

> On May 4, 2007, at 9:10 AM, RW wrote:
> > On Thu, 03 May 2007 11:07:34 -0400
> > Chuck Swiger <cswiger at mac.com> wrote:
> >> Sun SPARC machines have good HW clocks, and also some of the newer
> >> Macs also seem to have consistently low values in ntp.drift and
> >> handle timekeeping well.
> >
> > Does that matter?
> 
> A good question-- the answer seems to be that it depends.
> 
> > The RTC time is almost immediately overridden by ntpdate. The
> > drift is a systematic error that ntpd allows for. I would
> > have thought that the only significant issue, is whether the system
> > loses timer interrupts under load.
> 
> There are limits to how rapidly ntpd will slew the clock via adjtime 
> (); the smaller the intrinsic drift of the HW clock, the sooner any  
> adjustment (beyond the initial stepping at system boot via ntpdate)  
> will complete. 

As I understand it, ntpd uses it's own kernel interface, ntp_adjtime(),
which lets it share some of its internal state with the kernel. The
kernel knows about the time and frequency errors, and makes the
corrections itself every second. 

If the time error is zeroed by ntpdate, and there's a drift-file, I
don't see that the actual drift value makes much difference. I suspect
that any quartz clock is overkill.



More information about the freebsd-questions mailing list