Alain DIDIERJEAN a écrit :
"David A. Riggs" a écrit :
Re: [SLE] System clock too fast From: Robert Stia
To: "David A. Riggs" "David A. Riggs" wrote:
On Wednesday 10 October 2001 10:04 am, Alain DIDIERJEAN wrote:
If I remember well, I read something about system clock being too fast on SMP computers. It's happening on my system since I installed kernel 2.4.10 SuSE (about 2mn a day). Can it be cured ?, beside loading twice a day from a time server...
--------------<SNIP>--------------------------
Sorry, unless your machine is SMP, this is totally unrelated to the problem discussed in this thread. Have you tried replacing your BIOS battery?
David A. Riggs
As mentionned in the original message maybe not clearly enough, the machine indeed is SMP : 2xPII 266Mhz
I finally found a working solution by reading hwclock's man : I added the following script to /etc/cron.daily, named bbb_local_time : #!/bin/sh # # paranoia settings # umask 022 PATH=/sbin:/bin:/usr/sbin:/usr/bin export PATH hwclock --adjust # correct HW clock hwclock --hctosys # set SYS time from HW This seems to keep the time correct +/-2 seconds during working time (8-23). I might add a correction from a time server by midnight should the drift be more important. Still testing as it has been operating only three days.. -- ~adj~ Ces mystères nous dépassent Feignons d'en être l'organisateur...