You are not logged in.

#1 2007-03-30 19:31:35

Zaxariadis
Member
From: Hellas
Registered: 2007-03-30
Posts: 21

clock is running ahead of time

Hi there!

Im glad to join you.

So... here is my prob.
Im running openntpd on every boot and my clock Syncs fine BUT my clock is running ahead of time unless I restart the deamon OR reboot the machine. 

My clock  runs ahead of time by about 15-20mins/day.

I wonder if this is a kernel bug or I just configured my machine in a wrong way.

Any ideas?

Cheers!
Zaxariadis

Offline

#2 2007-04-01 02:02:27

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: clock is running ahead of time

Try adding "clock=pit" to your kernel command line (in menu.lst or grub boot menu) .


1000

Offline

#3 2007-04-01 09:26:36

emphire
Member
From: Canada
Registered: 2007-03-21
Posts: 203

Re: clock is running ahead of time

If that doesn't work for you (I'm having similar problems) then you might want to try ntpd instead of openntpd.  I still have problems with ntpd, but not on as large a scale as openntpd.

Offline

#4 2007-04-01 13:53:45

Zaxariadis
Member
From: Hellas
Registered: 2007-03-30
Posts: 21

Re: clock is running ahead of time

So far so good!
"clock=pit" seams that works for me.

I google around "clock=pit" and I found that:
http://support.microsoft.com/kb/918461

"To resolve this issue, add the "clock=pit" parameter to the Linux bootloader file. The clock=pit parameter causes the Linux 2.6 kernel to use a more efficient algorithm to synchronize time between the virtual machine and the host computer. This algorithm does not adjust for lost ticks. Therefore, the algorithm does not cause the virtual machine to gain time."

Thank you all for your help!

Offline

#5 2007-04-01 20:45:09

emphire
Member
From: Canada
Registered: 2007-03-21
Posts: 203

Re: clock is running ahead of time

Good to hear.  I might be wrong, but I think they changed it from "clock=pit" to "clocksource=pit" in the newer kernels (2.6.20+?).  Have a look at dmesg|grep -i clock and see if it's giving you a note about it.

Offline

#6 2007-04-01 21:02:02

Zaxariadis
Member
From: Hellas
Registered: 2007-03-30
Posts: 21

Re: clock is running ahead of time

Yap! You are right


[root@localhost zaxariadis]# dmesg|grep -i clock
Kernel command line: root=/dev/hdb1 ro clock=pit vga=771
Warning! clock= boot option is deprecated. Use clocksource=xyz
Time: pit clocksource has been installed.
Real Time Clock Driver v1.12ac

thanx smile

Offline

Board footer

Powered by FluxBB