Re: [chrony-users] RTC trim and offset reduced to 1ms |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] RTC trim and offset reduced to 1ms
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Thu, 16 Jan 2020 11:29:24 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579170574; 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=DQm6PrSCDEvKqwRBsu942ieTP47lMXtpMir0gq0lML8=; b=ToFBbjeahdv7bzIaPWvxZJ7fuZMTXrYZsgKnHhDq8lICu6lKuFE9H7TiQJs2gQNRQk+Vvj mu+GNyAd/lhbBFkLC1wcdvgRBhPxdhMyf1G1dPKcqxF194EQHQQiuYlEV+CmMr23zG/ZNf gWLuwRbVUwUOpTL/jbZfD/Ic6yjOUDw=
On Thu, Jan 16, 2020 at 10:11:02AM +0000, Seoli Luca (M) wrote:
> Hi all,
>
> I'm trying to configure chronyd to set RTC time considering System time and its variations. In particular, I'd like to get an offset between RTC time and Sys time less than 1ms (milliseconds). Is it possibile?
> Below my configuration file and some statistics I found in my rtc.log file.
No, chronyd can set the RTC only with about 0.5 second accuracy due to
the 1s resolution of the RTC (it doesn't try to time the operation
unlike the kernel or hwclock). As long as the estimated offset is
smaller than 1 second, chronyd will not try to trim the RTC, even if
the rtcautotrim threshold is smaller.
I'd suggest to disable the RTC tracking in chrony and run hwclock
every few minutes (e.g. from cron).
> ---- Configuration File ----
> hwclockfile /etc/adjtime
> rtcautotrim 0.001
> rtcdevice /dev/rtc
> rtcfile /var/lib/chrony/rtc
> logdir /var/log/chrony
> log rtc statistics measurements tracking
> dumponexit
--
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.