Mailinglist Archive: opensuse-factory (845 mails)

< Previous Next >
Re: [opensuse-factory] wrong system time if no NTP (local hwclock)
  • From: Volker Kuhlmann <list0570@xxxxxxxxxxxxxxx>
  • Date: Sun, 11 May 2008 10:17:57 +1200
  • Message-id: <20080510221757.GA19778@xxxxxxxxxxxxxxx>
On Sun 11 May 2008 01:04:01 NZST +1200, Carlos E. R. wrote:

Both are multiboot systems with the hardware clock set to local (GMT-0400)
time. Why are they different?

I've observed cmos clock drifts of 3s/day on recent motherboards, and
wouldn't put much mnore faith into CPU clock frequency accuracies either
(which is what the kernel time runs on while the computer is running).

The adjtime file serves to keep track of the different speed of the
hardware clock (the cmos, battery, clock) when compared with an external
source, with the purpose of adjusting for the estimated clock drift when
booting the system. It is absolutely normal than different machines have
different drifts.

cer@nimrodel:~> cat /otros/test_d/etc/adjtime

And each of them assumes it's the only one writing to cmos and therefore
being able to measure its clock drift. Even with a single-boot system I
didn't get high confidence in the past of this process working realibly.
Just through adjtime away completely and fetch the time (ntpdate) when
booting. Run ntp on anything turned on more than a day if you care about
the time, run ntp *always* on networked computers that may run several
days at once.

Volker

--
Volker Kuhlmann is list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >