Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Major Clock drift [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
thompsonmike
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 275
Location: Bath UK

PostPosted: Thu Jul 14, 2005 4:55 am    Post subject: Major Clock drift [SOLVED] Reply with quote

My clock is drifting some HUGE amounts. I have NTP running, and after a day it reports that it has corrected the clock by over -100 seconds.

If I turn the computer off, the clock jumps forward hours.

I am running

Code:

Linux polaris 2.6.11-hardened-r15 #1 SMP Tue Jun 28 17:42:22 BST 2005 i686 AMD Athlon(tm) XP 2200+ AuthenticAMD GNU/Linux


Has any one got any ideas? I dont think it is the CMOS battery, as this machine is on for days and days and days, and it gains time, not loses time when off.
_________________
Thanks


Michael..


Last edited by thompsonmike on Thu Jul 14, 2005 2:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
songpenguin
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2005
Posts: 142
Location: USA

PostPosted: Thu Jul 14, 2005 7:16 am    Post subject: Reply with quote

Well, if it happens when the computer it probably doesn't have anything to do with linux. When NTP reports correcting 100 seconds is that with the computer on or off. This might just affect your clock, in wich case you can try and compromise by having the computer sync with another computer frequently. http://gentoo-wiki.com/HOWTO_NTP . Of course, if it is a fried timing crystal there is probably more than just the time that is malfunctioning.

I have an idea: create a script or a program to ping at a regular interval over an isolated and reliable network at regular intervals and see from the other computer if the wacked computer is timing the pings correctly. Of course you could also make the program switch a serial pin but that would be more work and probably not tell you much more :-).

Hope this helps,
Songpenguin
Back to top
View user's profile Send private message
thompsonmike
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 275
Location: Bath UK

PostPosted: Thu Jul 14, 2005 7:53 am    Post subject: Reply with quote

I am already syncing with NTP........

This affects the computer in when it is turned on, NTP just keeps it in check, but it appears to be a massive amount of corrections going on, then when the machine restarts, the Bios is correct. Linux loads and the time shoots forward a couple of hours.
_________________
Thanks


Michael..
Back to top
View user's profile Send private message
songpenguin
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2005
Posts: 142
Location: USA

PostPosted: Thu Jul 14, 2005 8:26 am    Post subject: Reply with quote

Try running a test like I described earlier. And btw, what arch are you using and is it an unstable branch?
Also, this might be a realted post but also new. https://forums.gentoo.org/viewtopic-p-2572375.html#2572375

Hope this helps,
Songpenguin
Back to top
View user's profile Send private message
thompsonmike
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 275
Location: Bath UK

PostPosted: Thu Jul 14, 2005 8:57 am    Post subject: Reply with quote

I am running i386 I think, not sure, but it definatly is not unstable (~x86)

I remember reading once before about AMD has a different clock scheme, and NTP was not working.
_________________
Thanks


Michael..
Back to top
View user's profile Send private message
thompsonmike
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 275
Location: Bath UK

PostPosted: Thu Jul 14, 2005 2:14 pm    Post subject: SOLVED Reply with quote

It turned out that kernel 2.6 likes to have the hwclock preferences set
in /etc/conf.d/clock
and in there there is a option for syncing the software clock to the bios clock on shutdown. That was
not happening, enabled it and the system syncs the software clock with the bios
Now all is happy.
_________________
Thanks


Michael..
Back to top
View user's profile Send private message
songpenguin
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2005
Posts: 142
Location: USA

PostPosted: Thu Jul 14, 2005 7:38 pm    Post subject: Reply with quote

Great, so the drifts have been going away? I had no idea that the software clock could drift that much untill you posted :-/. I think I'm going to set up the NTP daemon, before I only synced when I booted.

--
Songpenguin
_________________
Bill, I don't do Windows. --Ray Bradbury
You've got to jump off cliffs and build your wings on the way down. --Ray Bradbury
Back to top
View user's profile Send private message
atrus123
Guru
Guru


Joined: 06 Jul 2005
Posts: 339
Location: Annapolis, MD

PostPosted: Thu Jul 14, 2005 8:02 pm    Post subject: Reply with quote

Man, I tried that too, but nothing has changed.

In fact, it seems like linux is changing the bios clock rather than vice-versa. I set up hc syncing, and now whenever I reboot, the bios is set to the linux clock.. which is running about 3/4 faster. The seconds in the bios are correct. Just the hour changes.

I'm syncing with NTP, and it also fails to change the time.

I gain about three hours every hour. Weird.

J.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum