From owner-freebsd-stable@freebsd.org Thu Mar 5 15:23:48 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ED7A326C519 for ; Thu, 5 Mar 2020 15:23:48 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) by mx1.freebsd.org (Postfix) with ESMTP id 48YDzl0xQyz3F3G for ; Thu, 5 Mar 2020 15:23:46 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from [194.32.164.27] ([194.32.164.27]) by mx0.gid.co.uk (8.14.2/8.14.2) with ESMTP id 025FNir8084575; Thu, 5 Mar 2020 15:23:45 GMT (envelope-from rb@gid.co.uk) From: Bob Bishop Message-Id: <53A0BB94-6D6B-472B-9BCF-9B49EDFF7593@gid.co.uk> Content-Type: multipart/signed; boundary="Apple-Mail=_E8CC73EF-5165-4AAD-9886-C0CCE3A5F4DD"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: ntp problems stratum 2 to 14? Date: Thu, 5 Mar 2020 15:23:44 +0000 In-Reply-To: <20200305063332.GC42815@server.rulingia.com> Cc: Dewayne Geraghty , freebsd-stable stable To: Peter Jeremy References: <20200226194329.GA85186@server.rulingia.com> <20200305063332.GC42815@server.rulingia.com> X-Mailer: Apple Mail (2.3273) X-Rspamd-Queue-Id: 48YDzl0xQyz3F3G X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rb@gid.co.uk designates 194.32.164.250 as permitted sender) smtp.mailfrom=rb@gid.co.uk X-Spamd-Result: default: False [-3.62 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.983,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[gid.co.uk]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_ALL(0.00)[]; IP_SCORE(-0.84)[ip: (-2.81), ipnet: 194.32.164.0/24(-1.40), asn: 42831(0.10), country: GB(-0.07)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[250.164.32.194.list.dnswl.org : 127.0.10.0]; SIGNED_PGP(-2.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:42831, ipnet:194.32.164.0/24, country:GB]; FREEMAIL_CC(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2020 15:23:49 -0000 --Apple-Mail=_E8CC73EF-5165-4AAD-9886-C0CCE3A5F4DD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, > On 5 Mar 2020, at 06:33, Peter Jeremy wrote: >=20 > Hi Dewayne, >=20 > Sorry for the delay. Unfortunately, I can't really suggest anything - > it's not clear to me why ntpd would prefer a stratum 14 clock over a > stratum 2 clock. Have you tried looking through the debugging hints > page (https://www.eecis.udel.edu/~mills/ntp/html/debug.html)? >=20 > I haven't seen that problem but I don't use the local clock. >=20 > During startup, it would not seem unreasonable for the local clock to > become valid first because it will have a lower jitter. But ntpd > should switch to the stratum 2 clock and stay with in as the better > time source. One problem is that if ntpd decides to switch away from > the clock for any reason (eg a burst of jitter), it may get stuck on > the local clock as it drifts further from "real" time. Yes. I=E2=80=99ve had exactly that happen with a stratum 1 (GPS) server = with only local as fallback. The GPS signal dropped for a while and the = box drifted off sufficiently that it wouldn=E2=80=99t reacquire the = accurate clock. The solution is to add a few pool (or whatever) servers into the config = - you can still =E2=80=98prefer=E2=80=99 a local server but it ensures = the box won=E2=80=99t drift off into the weeds. > -- > Peter Jeremy -- Bob Bishop rb@gid.co.uk --Apple-Mail=_E8CC73EF-5165-4AAD-9886-C0CCE3A5F4DD Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQR+a6Wh87I/iYwcbE+8xpPppLfFvwUCXmEZgAAKCRC8xpPppLfF v9kBAKCAxe9gUzpB6ljW7t0CaWXIJAtcxACfXQUcYYCQQRJbifZY65ZISBI8vsk= =mCf7 -----END PGP SIGNATURE----- --Apple-Mail=_E8CC73EF-5165-4AAD-9886-C0CCE3A5F4DD--