Re: [chrony-users] chrony not demoting broken PPS source |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] chrony not demoting broken PPS source
- From: Chris Spencer <spencercw@xxxxxxxxx>
- Date: Wed, 9 Sep 2020 11:23:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=43W8AT145VqEoFj2yrOgDqHN5+4CCfeP9Ol0oVOZVaU=; b=NcHgqzhjZZx4ILRcWKCYMDa+GDsxzTUOIsWh8QCwfpFaheiEEDgX+QRvDc30vPikq/ 5pbK6q9+qUZfwpEC1LIQXdDA+nkPd8+wL4vxaSzW/znsN+GIwjwBerpbVfCWHgovXTAe p6mmz2QqqOdEkBKq5uKXEWKsDTExBRpcMKaI3gCFV2QabbZADF/XVO8wWf0gVzZ/OqHs 0gpPi0gGXxHzqRLejlI55tRBSmVymPmr1EkSJ7PyAaK3DZgq70P3FWtP/7CYia66vwvd 00HK52tY256jfeSq92Z2a04xFgG00FJgqQi4ABS4kskTWvrwm0Ulw7g2mEPPbeETHttR Djgw==
On Wed, 9 Sep 2020 at 11:10, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>
> On Wed, Sep 09, 2020 at 10:55:41AM +0100, Chris Spencer wrote:
> > Hi,
> >
> > I have come across some slightly odd behaviour from chrony. We have a
> > GPS time source with PPS. The device is currently indoors so the PPS
> > is dropping in and out, but NMEA timestamps are still coming through.
> > For some reason, chrony is still trying to use the broken PPS source
> > even though it's not providing any data:
> >
> > # chronyc sources
> > 210 Number of sources = 6
> > MS Name/IP address Stratum Poll Reach LastRx Last sample
> > ===============================================================================
> > #- NMEA 0 4 377 11 -77ms[ -77ms] +/- 100ms
> > #* GPS 0 4 0 101m +2315ns[+3536ns] +/- 141ns
> > ^- time.cloudflare.com 3 6 377 100 -1167us[-1167us] +/- 64ms
> > ^- ntp1.unix-solutions.be 2 6 136 359 -62us[ -62us] +/- 53ms
> > ^- ntp.devrandom.be 2 6 377 100 +352us[ +352us] +/- 24ms
> > ^- ntp2.unix-solutions.be 2 6 324 24m -150us[ -150us] +/- 30ms
>
> The GPS time is much more accurate than the other time sources, so
> it may take a long time before chronyd decides it should switch to
> something else when it stops providing samples. It tries to minimize
> the error of the clock taking into account its estimated stability.
> You can speed up the reselection by increasing the maxclockerror
> value.
Ah that's interesting thanks. As long as it does eventually pick
another time source then that's probably fine for our purposes.
> > # cat /etc/chrony.conf
> > refclock SHM 0 offset 0.155 delay 0.2 refid NMEA
>
> The SHM refclock should have the noselect option if it's used only for
> locking the PPS. If the GPS has no fix, the NMEA time will probably
> drift away.
I did originally have 'noselect' turned on; however, it's possible for
us to get locked out of these devices if the clock is not vaguely in
the vicinity of the correct time, so I figured it would be safer to
let chrony use the NMEA time as a failsafe.
Thanks,
Chris
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.