[ntp:questions] What prevents continuous time within an operating system ?
Brian.Inglis at SystematicSw.ab.ca
Sun Jan 17 23:42:32 UTC 2016
On 2016-01-16 08:26, MAYER Hans wrote:
> I connected a GPS based 1PPS signal to a Banana Pi as stratum 0 source.
> I watched the offset in the peerstats file and it goes up and down sometimes.
> So I assumed this happens due to the fading of the signal from the GPS satellites.
> Later on I installed a second 1PPS signal based on a rubidium frequency standard.
> So I realized that both time-stamps have the same issue. See here
> 127.127.22.1 is rubidium, 127.127.22.0 is GPS.
> 127.127.22.1 is the time source, 127.127.22.0 is configured "noselect".
> As you can see 127.127.22.1 offset is typically between +/- 5 micro seconds
> but currently at around 18:00 h the offset is 40 micro seconds.
> the same behavior with the GPS signal.
> Both fit very well. So it's not the time source, it must be the operating system.
> And of course this doesn't happen always at the same time, it's different.
> I am not sure if this is related to the Banana Pi and it's operating system.
> OS is Bananian OS which is actually a Debian OS with kernel 3.4.108+
> It has 1GB of RAM where almost all is free. Nothing else as NTPD and GPSD
> is running.
If those are peerstats offsets, plot those two against loopstats offset and
frequency drift, and you may see a correlation between system clock frequency
drift and PPS timing.
Watch ntpq -p -c rv -c cv values and check what states the daemon, references,
and other sources show.
Post the plot and ntpq output here for more help.
> I also wonder why NTP needs almost 2 hours to find back to the "normal" offset
> if it does read the time stamp each 32 seconds ?
Other suggestions to improve stability:
Set min/maxpoll for local references to 4.
Set a preferred source to label the PPS ticks e.g. server ... prefer.
Add good LAN or nearby internet sources.
Post server entries in ntp.conf here for more help.
Have you set affinity for ntpd or is it pinned to a non-zero CPU
to reduce contention?
Have or can you disable any power management features?
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
More information about the questions