LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-01-2009, 11:43 AM   #1
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Rep: Reputation: 15
Time slows down...


Hey all. I have a strange and very annoying problem. I'm running gentoo and I have my /etc/conf.d/clock settings set CLOCK="local" and TIMEZONE="EST". I date the date/time using date and everything was fine....

about an hour later the clock was 45 minutes behind. A day later it was far far worse.

Does anyone have any idea why this would happen? I need my system to be 100% reliable and if it cannot even tell what TIME or DAY it is then its pretty useless.

Thanks.
 
Old 02-01-2009, 11:53 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
I assume you are using an online time server? I would start by replacing the 'cmos' battery.
 
Old 02-02-2009, 09:55 AM   #3
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Original Poster
Rep: Reputation: 15
I'm not using any kind of internet time server actually. Never have. Should I be?

Also...I suppose I could buy a new CMOS battery. I did have a power issue earlier last month that knocked out power to 4 systems.

How would I go about using an internet time server?
 
Old 02-02-2009, 12:24 PM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Take a look in your administration centre for the option to connect to an internet time server.
 
Old 02-02-2009, 01:12 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
about an hour later the clock was 45 minutes behind.
Something is seriously wrong with your clock.

Does time drift so fast if you are running a "live CD" distro (in which case there's something wrong with your slack install)?

As a temporary fix, you could look into something like an ntp daemon to keep your time synchronised. This can be set up to check the time against a local ntp server and also keep a watch on how fast your local clock "drifts" and gradually apply a correction factor to it.

More information here: http://tldp.org/LDP/sag/html/basic-ntp-config.html

There are loads of public ntp servers scattered about. If lost you can always use
ntpdate pool.ntp.org
But I don't think they'll like it if you poll them every minute (so setup the "drift" file, and check once a day once the drift has been computed).
 
Old 02-02-2009, 10:43 PM   #6
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Original Poster
Rep: Reputation: 15
I just installed a new CMOS battery and my time issues seem to have vanished. I guess that power knockout from before really did a number!

Thanks for all your input!
 
Old 02-02-2009, 10:49 PM   #7
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by alphisb0t View Post
I just installed a new CMOS battery and my time issues seem to have vanished. I guess that power knockout from before really did a number!

Thanks for all your input!
You're welcome
 
Old 02-04-2009, 09:12 AM   #8
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Original Poster
Rep: Reputation: 15
I was hoping my time issues were a thing of the past (no pun intended) but it seems my clock has drifted by 15 minutes as of this writing. It was fine last night...I'm not sure what the problem here is. Could there be something with my linux config that is overwriting the time or is my mobo really just borked?

Any suggestions are very appreciated.

Thanks.
 
Old 02-05-2009, 06:41 PM   #9
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Original Poster
Rep: Reputation: 15
Ok guys. I purchased a new power strip hoping this might be a case of an old power strip gone bad. Everything booted correctly and the BIOS reported correct time.

However now my clock is speeding WAY too fast!!! Every 45 or 30 seconds my clock goes past a minute. I can't believe this.

Its interesting to note that date returns the super speed clock but hwclock --show returns a much closer results! It seems accurate.

Any idea why hwclock is ok but date is not?

I've deleted /etc/localtime and copied /usr/share/zoneinfo/EST to /etc/localtime just in case and I've changed TIMEZONE="EST" in /etc/conf.d/clock

This doesn't seem to have fixed anything as my clock is still speeding ahead.

Any help is greatly appreciated. Currently I read somewhere that someone fixed this problem by disabling ACPI in boot as a kernel boot param. I will try this when I return home. I'm still open for ideas.

Thanks.

P.S. I'm running Gentoo and not Slack nowadays. I'll update status soon.
 
Old 02-06-2009, 09:56 AM   #10
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Original Poster
Rep: Reputation: 15
ANY suggestions at all would be cool. Even taking my mobo out and throwing it out of a window...
 
Old 02-06-2009, 11:19 AM   #11
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
ANY suggestions at all would be cool.
I made a suggestion in post #5:
Quote:
Does time drift so fast if you are running a "live CD" distro (in which case there's something wrong with your slack install)?
If you had done this and told us what the result was, we'd maybe know by now if you have a hardware or software problem.

You might also like to read these two pages: http://tldp.org/HOWTO/Clock-1.html and
http://tldp.org/HOWTO/Clock-2.html
 
Old 02-09-2009, 02:41 PM   #12
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Original Poster
Rep: Reputation: 15
Hey. Sorry I ignored your suggestion for running a LIVECD to check if time drifts there too. I'm a bit hesitant to do that because this server is also my NAS server/Web server/NFS/etc. I have a LOT of things going on on this machine (which is why this time problem is so annoying) and having a livecd running means I cannot have these services up.

I will try this anyway when I know noone needs access to NAS (maybe during the night on saturday or something) and see what results.

Thanks
 
Old 02-10-2009, 04:00 AM   #13
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188

Rep: Reputation: 31
If it is an always on machine, why not install ntp so all your other machines can sync off it.

Even if it just to learn something new. Ntp is pretty easy and uses bugger all download.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC5 slows down after period of time asidarin Linux - Server 19 06-25-2007 11:46 AM
redhat9 just slows down!!! pwo0123 Linux - Newbie 2 05-25-2005 11:58 AM
Performance slows over time with VMware. Why? Apollo77 Linux - General 1 11-24-2004 12:31 PM
SusE slows down somehow. LoneWolf58 Linux - General 2 10-17-2002 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration