Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2007 05:16:17 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Martin Dieringer <martin.dieringer@gmx.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: clock problem
Message-ID:  <20070508191617.GH838@turion.vk2pj.dyndns.org>
In-Reply-To: <20070508151525.Y839@thinkpad.dieringer.dyndns.org>
References:  <200705081248.l48CmvBO083216@lurza.secnetix.de> <20070508151525.Y839@thinkpad.dieringer.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--nHwqXXcoX0o6fKCv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2007-May-08 15:33:51 +0200, Martin Dieringer <martin.dieringer@gmx.de> w=
rote:
># cat /var/db/ntp.drift
>500.000
>#

There seems to be a bug in ntpd where the PLL can saturate at
+/-500ppm and will not recover.  This problem seems too occur mostly
where the reference servers have lots of jitter (ie a fairly congested
link to them).  The recovery action I've used is:

- Kill ntpd
  # /etc/rc.d/ntpd stop
- Delete the existing drift file
  # rm /var/db/ntp.drift
- Reset the kernel PLL
  # ntptime -f 0
- Reset the system time
  # /etc/rc.d/ntpdate forcestart
- Restart ntpd
  # /etc/rc.d/ntpd start

At this point, ntpd will need to recalibrate itself - which can take
anything from a couple of hours to a day or more, depending on the
accuracy of your system clock.  During this time, your system needs
to be online.

In my experience, ntpd also does not recover from having its own IP
address change.  My work-around is to restart NTP within my dhclient
configuration if the address changes.  You may also be able to
configure your system so that ntpd attaches to an interface with a
fixed address and the NTP packets are then NAT'd to the servers
(though this will add jitter due to the additional processing).

--=20
Peter Jeremy

--nHwqXXcoX0o6fKCv
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGQMyB/opHv/APuIcRAqHMAKCAfkGYSeLgJ8sqNdn02c85uJoCKACdEd+H
r+LZjPeurIA0ocuGnf+74TU=
=+gW4
-----END PGP SIGNATURE-----

--nHwqXXcoX0o6fKCv--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070508191617.GH838>