Re: [chrony-users] Measuring clock offset results |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Measuring clock offset results
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Wed, 19 Jul 2023 16:17:12 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689776236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lpxmLo6ui9mM1nXscglJVTOudXeCecgO0WumTUv1hL0=; b=WpV5VNosoLcq9RZ/6So5RtGvjwnnrzsU6DxSknLxQlOONIKbf7vkdAQS623xd0mWKIEdi/ 7VVYP7mkJmADVYTf2keHNMtthEiqflmIWxc4qTlhaOorIZAhkSdddjfDOwTfhkSXW+mXIc 4Ky2din2Hbp9WrcAtHAFOQORX7UH1/0=
On Wed, Jul 12, 2023 at 09:52:11AM -0700, Thangalin wrote:
> https://ibb.co/album/1Z824p
>
> Are there any other ways we could help chronyd stay below 20 microseconds
> (e.g., optimized build) that may have been overlooked (besides using GPIO)?
If you zoom on those spikes and see that they are just single
samples, it's probably not an error of the clock, but rather a
measurement error (e.g. due to interrupt delays). You should implement
some filtering in your program, e.g. use the median value from a
number of consecutive samples (e.g. 5). That's what both ntpd and
chronyd are doing with the data they get.
--
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.