Re: Accurately measuring clock drift

Miroslav Lichvar <[email protected]>
Newsgroups gmane.comp.time.chrony.user
Message-ID <ZJLTxRXZkqRCUt57@localhost>
On Tue, Jun 20, 2023 at 12:35:25PM -0700, Thangalin wrote:
> It's armv7l running kernel 4.14 with chrony 3.4.

If it's using a GPIO pin, you can try this polling variant of the
pps-gpio driver to avoid interrupt delays:
https://github.com/mlichvar/pps-gpio-poll

When the module loads, it logs the delay in reading of the GPIO pin,
so you have an upper bound on the error.

> How would you go about measuring the clock drift between NTP and chrony so
> as to verify the drift has been reduced?

You need to use one source of information in both tests. With
a PPS device you can log the raw PPS offset reported in
/sys/class/pps/pps0/assert.

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "unsubscribe" in the subject.
For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "help" in the subject.
Trouble?  Email [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.