Re: Reading the RTC



Hello David,

On Thursday, September 27, 2007 at 22:37:53 +0100, David Woolley wrote:

This is arguably off topic as manipulationg the RTC is incompatible
with running ntpd on Linux, at least when using the kernel clock
discipline code. Under these conditions, the kernel updates the RTC
every 11 minutes.

One can still use hwclock to set a hopefully good enough system time
before ntpd startup: The ntpd daemon likes to comfortably start already
well in phase. And one can also choose to disable the ugly eleven
minutes mode, via config or patch.

When I power-up my computer in the morning, hwclock routinely sets the
system at some few milliseconds of UTC. The ntpd daemon then slews that
quite quickly, and never had to step. Looking at peerstats, first poll
today morning had offset -7.2ms, yesterday morning -1.4ms, and the day
before -0.9ms. Nights become a little bit colder. ;-)


Serge.
--
Serge point Bets arobase laposte point net
.



Relevant Pages

  • Re: Problem with xntp after reinstall on openSUSE 10.3
    ... problems using the ntpd version with the distribution. ... As a test, you might stop ntpd, then set the system time manually running ... but reports the difference between the remote NTP ... server and your system clock. ...
    (comp.protocols.time.ntp)
  • Re: [SLE] date command.
    ... While I agree that the way he worded this could be much less aggressive, I still think ntpd is the proper way for a server to adjust the time. ... The difference between ntpdate and ntpd is that ntpdate will adjust the time in one big step, setting the time backwards or forward to the necessary value. ... On a desktop you don't need to concern yourself with system time. ... effectiveness. ...
    (SuSE)
  • Re: NTPD not keeping time
    ... running in UTC or in your local timezone; ... Darn the system time strayed over night. ... The system it is runing on is Windows ... turned on ntpd because for some strange reason the ...
    (freebsd-questions)
  • Re: Keeping time synchronized
    ... in the kernel, the kernel keeps system time using timer interrupts NOT clock frequency. ... in the kernel where the kernel does it's 11 minute write to the TOY clock it uses system time and IIRC jiffy transitions which take into account any frequency transitions. ... ntpd runs as a user space daemon, and does it's comparisons against system time, not CPU cycles. ...
    (Fedora)
  • Re: [SLE] date command.
    ... why I prefer ntpd? ... other hand does its best to avoid such a step and strives to adjust the ... while the system time will not make any strange jumps. ... Some days later you notice that cron isn't running, ...
    (SuSE)