Re: [opensuse] chrony and hwclock

On Fri, 2011-07-15 at 09:14 -0400, Anton Aylward wrote:
Roger Oberholtzer said the following on 07/15/2011 07:17 AM:
That seems to be the point of chrony. Access to the time source need not
be regular. Obviously the longer it is not connected the more time will

Isn't this what NTP does?
Only with 'layers' (?'stratum'?) of authority for fall-back.

Surely that is the idea. But when all you have is a GPS, things do not
reliably work to plan. If NTP does not find an external server, it
eventually falls back to localhost. localhost uses whatever the BIOS has
for time. If your time looks correct in the absence of a ntp server, it
is probably because of some mechanism other than ntp. Like the hwclock
stuff openSUSE does at boot and shutdown. I think that is what maintains
time between boots. It requires that the time be correct when the system
is shutdown. To whatever extent it is incorrect when it is shut down, it
will be incorrect when it boots.

Given that ntp seems to only periodically re-check available servers, if
the GPS is not on-line when it checks, it may be missed. You have to
hope that the GPS is working when ntp checks. Otherwise ntp will choose
another. In a vehicle that is not attached to anything else, that will
be localhost. Which really has little useful information to help improve

This becomes a real problem when the system is turned on. ntp may not
see the GPS when it first starts. It then goes to localhost. Eventually
the GPS comes alive. Until ntp checks again, the GPS won't be used. So
the system may have incorrect time for a long time.

Systems that are on all the time or for very long periods of time do not
see the deficiency in ntp. It has become apparent in systems that are
off and on with some frequency. It is a recurring topic on the gpsd
mailing list.

Having claimed all this, I realize that I may have a few points wrong. I
can only say that I see on my laptop (on and off a lot - external time
source only available after boot is long completed) the unexpected ntp
behavior described by others. I have no investment in using chrony or
ntp. I am only exploring options at this time.

And my real question about any possible side effects of not running
hwclock at system shutdown remains unanswered.

Outside of military, an automobile is about the worse environment for
electronics you will encounter. Its bad enough to be the electronics
in, say a traffic light controller cabinet, exposed to heat
fluctuations. But auto electronics has to deal with that and more.
Vibration, salt, dirt ....

As we well know. Our systems are used anywhere from Northern Finland to
Saudi Arabia. Being on the road, they are exposed to many nasty things.
Given that we measure road quality, they find themselves on some nasty
bouncing surfaces. Environmental factors determine a large part of our
design. It is one thing that drives up the cost of such systems.

Yours sincerely,

Roger Oberholtzer

OPQ Systems / Ramböll RST

Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696

Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

Relevant Pages

  • Re: Sun Solaris Time Servers?
    ... before it will accept a newly init'd time source's time info for NTP ... There are some nice non-atomic NTP clocks at the low end, ... You can make an NTP server sync via GPS for a *lot* less than $3,000. ... You can buy cesium clocks on eBay quite easily, but the life of the tube ...
  • Re: Running GPS under NTP
    ... GPS is, in this context a hardware timing process. ... you have "microsecond accuracy" and what has microsecond accuracy? ... ntp to a few microseconds standard deviation. ... If you assume that the packets have taken the same ...
  • Re: chrony and ntp comparison-- ADSL hookup
    ... The server is a GPS PPM disciplined clock using ntp. ... In the case of ntp the variance in the readings is about .32ms. ... so the mean poll time for chrony was 36sec while for ...
  • Re: Local (own site) NTP servers.
    ... been messing about trying to get a local GPS ... Disciplined NTP server working, ... to be able to take PPS based GPS signals, and act as a server. ... GPSDNTP server for a small low traffic LAN?.. ...
  • Local (own site) NTP servers.
    ... been messing about trying to get a local GPS ... Disciplined NTP server working, ... to be able to take PPS based GPS signals, and act as a server. ... GPSDNTP server for a small low traffic LAN?.. ...