Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Feb 2010 17:44:52 +0100
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-stable@freebsd.org
Subject:   Re: ntpd struggling to keep up - how to fix?
Message-ID:  <20100212174452.2140cd72.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <20100212131117.GA51905@icarus.home.lan>
References:  <20100211190652.6a66c618.torfinn.ingolfsen@broadpark.no> <20100211192515.GB13854@icarus.home.lan> <20100212132947.eb2af3d0.torfinn.ingolfsen@broadpark.no> <20100212131117.GA51905@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 12 Feb 2010 05:11:17 -0800
Jeremy Chadwick <freebsd@jdc.parodius.com> wrote:

> Please try doing this:
> 
> - stop ntpd
> - rm /var/db/ntpd.drift
> - sysctl kern.timecounter.hardware=ACPI-safe
> - start ntpd

Thanks, I'm currently testing that. Results in 72 hours (or less) :-)

> Then see if your clock drifts.  If it stops, great -- you can put that
> sysctl assignment line in /etc/sysctl.conf and consider it a done deal.
> I highly recommend putting some comments around it though so in the
> future you don't go "What's this? Silly!" and delete it.  ;-)

Yes, I know. Learned the hard way that I need to document things for my
own use. :-)

> I'll also point out that it's common on FreeBSD[1] to see messages
> like the following (or at least it was circa 2006 -- I believe ntpd

Yes, those messages are still there. At one time, I thought about
fixing that (by using the config you present), but in the end I figured
that these messages actually helps me in pinpointing time of crash in
the (few) cases wherer one of my machines crashes or panics. So in the
end I did nothing about it.

> Finally, you should really consider adding some stratum 2 sources to
> your list, *in addition* to the stratum 3 server you're already using.

Well, the stratum 3 server is my firewall. :) All the machines on my
LAN use that one as the ntp server.
My firewall is currently using three ntp
servers as sources, one is a non-public stratum 2 server (yes, I asked
for permission before I started using it), one is the no.poool.ntp.org
pool ( stratum
3) and I just found out that the third one has stopped responding.
So I removed it.

I have added the dk.pool.ntp.org and se.pool.ntp.org pools, we will see
how that turns out.

> ntpd can happily work with multiple servers, and will pick the best one

Yes, I know. It is a few years since I set this up, but at that time I
figured that if I use three ntp servers for my firewall, and just used
the firewall for all my internal machines, that would be good enough
for my uses. 
Perhaps I need to re-evaluate my needs.
-- 
Regards,
Torfinn




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100212174452.2140cd72.torfinn.ingolfsen>