Re: Time problem
Rikard Johnels <[email protected]> Wed, 13 Nov 2002 16:30:42 +0100
| Newsgroups | gmane.linux.suse.axp |
|---|---|
| Organization | rikjoh |
| Message-ID | <[email protected]> |
On Wednesday 13 November 2002 14.26, Predrag Cvetkovic wrote:
> Hi!
> I have Compaq AlphaServer DS20E (here is /proc/cpuinfo)
>
> cpu : Alpha
> cpu model : EV67
> cpu variation : 7
> cpu revision : 0
> cpu serial number :
> system type : Tsunami
> system variation : Catamaran
> system revision : 0
> system serial number : AY15203664
> cycle frequency [Hz] : 666666666
> timer frequency [Hz] : 1024.00
> page size [bytes] : 8192
> phys. address bits : 44
> max. addr. space # : 255
> BogoMIPS : 1326.92
> kernel unaligned acc : 12 (pc=fffffc000099baf8,va=11ffffedb)
> user unaligned acc : 0 (pc=0,va=0)
> platform string : COMPAQ AlphaServer DS20E 666 MHz
> cpus detected : 2
> cpus active : 2
> cpu active mask : 0000000000000003
>
> running SuSE 7.1 Alpha edition, kernel 2.4.19 (from Linus kernel tree,
> www.kernel.org), compiled with
> # CONFIG_RTC is not set
> System time on our machine is running late, about 20 seconds a day. Our job
> is very time dependant, tolerance is 5 seconds. Problem with RTC set was
> worse (about 30 sec./day).
> What can I do?
>
> Predrag Cvetkovic
>
> P.S. Sorry for my bad english...
I have a cronjob running om my server to set the clock (both software and
hardware) once every hour.
That way i have a fairly correct time off by no more then a few milisecs.
My closk is stable to begin with, but this way i ensure its running as correct
as possible.
The script running is:
#!/bin/sh
/usr/sbin/netdate ntp.lth.se
/sbin/hwclock --systohc
touch /root/cronlogs/setdate.run
The last line is just to give me a "proof" that the time is set. It can safely
be removed.
--
/Rikard
------------------------------------------------------------------------------------
Rikard Johnels email : [email protected]
Web : http://www.rikjoh.com
Mob : +46 70 464 99 39
------------------------ Public PGP fingerprint ----------------------------
< 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >