Re: [chrony-dev] [RFC] Transparent fallback from NTP reference clock to RTC |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] [RFC] Transparent fallback from NTP reference clock to RTC
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Mon, 7 Jul 2025 09:12:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1751872350; 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=D25M3UlKbB+gfGF8txzZy0f1/dbJAu8RUCnFY2Q/HNI=; b=bkfdxWpVFYDKHqOzUIovW3Vw6NpMH/uQ86Uqnz/cwSiI3+Hk1z2WppV06WPLV+OZm3p9Z0 bAkcoKrgojHo1t6X9u8sxQzZxQHifE4Ic5aO4pQ3q33hNjKDd1MTP1WU6wc6AEob4bXdUN 31w+w16yi6mBR3XgLSEckjMcpmqgKUA=
On Thu, Jul 03, 2025 at 06:53:19PM +0000, Christoph Schittel wrote:
> > > Can you please explain the use case? >
>
> At the time the limit of 16s was implemented in the kernel, this was an
> reasonable choice. Today for many applications even a (possible) deviation
> of 1s or less may be regarded as too big and the system should be signaling
> it by setting STA_UNSYNC. Reading David R. Mills documentation reads like
> the syncing service should set STA_UNSYNC. The kernel setting it, when
> maxerror reaches 16s was just meant as last resort.
Applications that need to know the maximum error should examine the
timex maxerror directly. Different applications running on the same
system may have different requirements, so one threshold in chrony to
set the flag globally could not work for all applications.
In this thread it was about setting the flag in order to disable the
kernel 11-minute system clock->RTC copy process to avoid a synchronization
loop when the system clock is synchronized to RTC by chronyd.
> (Remote) monitoring services could benefit, because hosts with sync problems
> could be very easily detected. E.g. NAGIOS instead monitors the clock
> difference between itself and remote hosts. This implies the monitoring host
> has the "right" time. This could be improved by reading remote hosts
> STA_UNSYNC, if it will be set when needed (which should be the admin's
> choice, not the kernel's).
NTP has root delay + dispersion (combined as root distance) for
estimating the maximum error. That's what should normally be
monitored, not a flag.
--
Miroslav Lichvar
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.