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: Tue, 14 May 2024 13:36:42 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715686921; 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=y/QrFo1Q9eU8y/aOWO0F9IFq20Jxl6ZhxHwVd+SUs+I=; b=jHZORSAcokIqP7qMmVe4CCPXX7GzpDr6D76a2TtR/zZH8seUHdi4/gLBiF6XY5W5zFIy2d vnAjm5MCte21WB0HnKZpR0dg1JqMOkeDvLpqrw5801u+6Ba+ZJG/dZTYZ6GxlTxyYRW5T7 dUzBHlN0EqR2zXv4YnBdLZjlmqNqVaw=
On Tue, May 14, 2024 at 04:35:14PM +0530, Abhijith Sethuraj wrote:
> > How did you measure that 50us error? Can you use that source of time
> > for synchronization?
> Unfortunately, we can't use that as a source. This difference is what an
> application noticed when it was looking at a timestamp that's there inside
> a data packet (think of it as tx timestamp from a server that we don't have
> control over) and what's obtained from system clock via gettimeofday()
> right when it received the data packet.
Is this server synchronized to the same NTP server as the computer
running the client application? What root distance does it report?
> Is there anything else that you would recommend we
> monitor on our end to catch these issues? Also, if root distance is ~1ms,
> does that imply that the value of current time that I get from
> gettimeofday() essentially has an error of ~1ms or is this just inferring
> to the error in measurements from source (and that the user-space app need
> not consider this)?
Root distance is an estimate of the maximum error. The actual error is
usually much smaller, but if you don't have something more accurate to
measure it, you won't know.
You need a better server for the application server and client to
minimize the maximum error. It needs to be closer to get a smaller
root delay and have a better reference clock or better implementation
to get a smaller root dispersion. Ideally, it should run chrony with
hardware timestamping.
--
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.