Re: [chrony-users] Understand why system clock is bad even though chrony offsets look fine |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Understand why system clock is bad even though chrony offsets look fine
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Mon, 22 Apr 2024 08:35:03 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713767707; 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=mHGUbvJZ81lxtG60jXIqMfz3rPcpuO5jGsAQ5eqvBJg=; b=FNr2N9QDoTwI205y45ztonHXydrz+AVmkVDgJVBYB8hgn1g5QeiqwxbODqWhZieCKUh0qC lKuUXPeqKjiyHIv2yZ6+YSz27+hTfXXwRBfihGHq1cLaBw7EA7mdc8EiOcEdgBNR2OZAKn rjT0JQxX4sqWFjJilCHo59qGrTkPXko=
On Fri, Apr 19, 2024 at 02:44:21AM +0530, Abhijith Sethuraj wrote:
> Hello,
>
> I'm noticing issues with my system clock being inaccurate by almost 50us,
> even though "System time" in `chronyc tracking` shows offsets in the order
> of ns. This was noticed by an application that tried to get current time by
> calling `gettimeofday()`.
How did you measure that 50us error? Can you use that source of time
for synchronization?
> Root delay : 0.000073557 seconds
>
> Root dispersion : 0.000997235 seconds
Root distance (half of root delay + root dispersion) is over 1
millisecond here. That's an estimate of maximum clock error due to
asymmetries and clock instability.
> almost similar to "root dispersion"? Also, what recommendations do you have
> for monitoring chrony, so that I can catch this before it affects my app?
> Also, are there any config tweaks that I can try out here to help me?
You need a better server, one that has a smaller root dispersion and
hardware timestamping on both the server and client to get the maximum
error below 50 microseconds.
--
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.