Re: [chrony-users] Accurately measuring clock drift |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Accurately measuring clock drift
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Tue, 20 Jun 2023 09:48:22 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687247306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VBpvnEDC2nHcVKoXEomX1kBKd2SDrDIz0ASwjKgZ4EA=; b=eACoNUdmZ6MNXNTxhIbXpFKk2iqFsNZ5RJVpLxVVLhQXXSjwP2uZ5yU3VOLuf+91prvOiv I4iTnjqcHhrv1pJcFCFMLkVYHCqxe7fwPX8z5DAKrkXIrypv0IT6qfnigRrKWa4VPChrhy 1eRJZ5qk/rcvHC9vIJYI3AqoL6PIUBQ=
On Mon, Jun 19, 2023 at 03:11:44PM -0700, Thangalin wrote:
> I'm wondering, in no particular order:
>
> - Do the *esterror* values from calling *adjtimex()* yield an
> apples-to-apples comparison between chrony and NTP?
The values are estimated differently. Not an apples-to-apples
comparison.
> - Do we need to combine PPS1 with the NTP server?
> - If so, how?
Your configuration looks good to me.
> - What else would we need to do to achieve sub-30 μs clock drift (or
> sub-10 μs)?
That depends on the hardware. There might be a better way to timestamp
the PPS that doesn't involve interrupts. Is it an x86_64 machine?
See these two examples:
https://chrony.tuxfamily.org/examples.html#_server_using_reference_clock_on_serial_port
https://chrony.tuxfamily.org/examples.html#_server_using_reference_clock_on_nic
> - How can we verify that the clock isn't drifting more than 30 μs,
> programatically (i.e., what API calls return the recent clock drift
> adjustment value)?
I don't think that is possible without a more accurate time source.
> - What API call returns the most recent clock drift adjustment value in
> nanoseconds?
This information is not available in the kernel (adjtimex). You would
need to use chronyc sources.
--
Miroslav Lichvar
--
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.