LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-29-2005, 03:55 AM   #1
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
date command counts time quicker than hwclock (RTC)


On boot i correctly set the CMOS time to

i ran both date and hwclock to check the time.
heres the result
carlos:/home/carl0ski # hwclock &&date
Thu 29 Dec 2005 08:19:44 PM EST -0.504746 seconds
Thu Dec 29 20:20:08 EST 2005
basically same time

i rinsed lathed and repeated here
carlos:/home/carl0ski # date && hwclock
Thu Dec 29 21:19:41 EST 2005
Thu 29 Dec 2005 08:49:31 PM EST -0.139466 seconds
difference blows out to 30 minutes in thirty minutes
(exactly twice as fast)

I have a dual core (dual processor System)
the problem was gone when i parsed notsc and no_timer_check to bios but now it's back

Last edited by carl0ski; 12-29-2005 at 04:00 AM.
 
Old 12-29-2005, 05:11 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Are you using ntp/xntp (Network Time Protocol)? This would check your system time against an accurate time source on the Internet and would create what is called a drift file. This drift file adjusts for the inaccuracy in the operating system's jiffy clock (software clock). Once the xntp daemon has run for a few days and has adjusted your system time numerous times it will make the software clock much more accurate. At that time you can disconnect from the Internet for several days at a time and the software clock will remain fairly accurate. You can find more information about NTP and the xntp software at www.ntp.org. The list of public time servers at this site may be a bit out of date. You can find public time servers for your time zone via Google. I would provide a reference to a good list of public time servers but I didn't bookmark the one that I found.

The hardware clock on WinTel computers is notoriously inaccurate. It amazes me that you can purchase a quartz wristwatch that is accurate to within 1 second in a thousand years for $25 but computer manufacturers refuse to put a good hardware clock in their machines.

Last edited by stress_junkie; 12-29-2005 at 05:16 AM.
 
Old 12-29-2005, 05:32 AM   #3
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872

Original Poster
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by stress_junkie
Are you using ntp/xntp (Network Time Protocol)? This would check your system time against an accurate time source on the Internet and would create what is called a drift file. This drift file adjusts for the inaccuracy in the operating system's jiffy clock (software clock). Once the xntp daemon has run for a few days and has adjusted your system time numerous times it will make the software clock much more accurate. At that time you can disconnect from the Internet for several days at a time and the software clock will remain fairly accurate. You can find more information about NTP and the xntp software at www.ntp.org. The list of public time servers at this site may be a bit out of date. You can find public time servers for your time zone via Google. I would provide a reference to a good list of public time servers but I didn't bookmark the one that I found.

The hardware clock on WinTel computers is notoriously inaccurate. It amazes me that you can purchase a quartz wristwatch that is accurate to within 1 second in a thousand years for $25 but computer manufacturers refuse to put a good hardware clock in their machines.

no i'm not using an NTP services

but also like ive stated perviously the hardware clock is fine

The BIOS time and RTC remain correct (hwclock)
but the kernel pacing and date cause chaos.

Repeat rates on keyboard mouse etc even if set to 1second repeats 2 times in a second.
the clock on the taskbar is fast reboot and it is back to normal (grabs it from BIOS)

i'll check out xntp

wouldnt know if it solves the pacing issue or bandaids by changing the clock back down at intevals

Last edited by carl0ski; 12-29-2005 at 05:35 AM.
 
  


Reply



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
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 10:17 AM
Real Time Clock(RTC) problem gongcon Linux - Software 6 01-06-2005 09:36 PM
hwclock on a laptop is not keeping time okmyx SUSE / openSUSE 1 12-01-2004 08:42 PM
date command do not keep time set shanenin Linux - Software 1 09-04-2004 08:16 PM
Sys time and hwclock time hallamigo Mandriva 2 05-24-2004 09:57 PM

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

All times are GMT -5. The time now is 05:32 PM.

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