LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-18-2012, 09:27 AM   #1
tybandara
LQ Newbie
 
Registered: Feb 2011
Location: Sri Lanka
Posts: 9

Rep: Reputation: 0
Arm device system time unexpectedly change!


Hello all,
I have a Gumstix overo Arm device which runs linux kernel 2.6.34. I'm running a software program which relies on system time, so it is quite time critical. In the initialization process of this program it change the system time using the "date" command. But I happened to notice that after about 20 minutes updating the time, system time suddenly change by 2 minutes. I have configured the system timezone as UTC. After starting this time update process, each time I notice that there's this sudden time drift. I'm in deep trouble since my program heavily depend on system time. I would be so thankful for advice.

Thank you.
Thilina
 
Old 02-18-2012, 11:40 AM   #2
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,887

Rep: Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016
Is the NTP service running? I believe it's enabled by default.
 
Old 02-19-2012, 10:41 PM   #3
tybandara
LQ Newbie
 
Registered: Feb 2011
Location: Sri Lanka
Posts: 9

Original Poster
Rep: Reputation: 0
I found that the NTP is running. Thanks for the hint. I'm curious, I saw that this time changing takes place after about 20 minutes. Is there a configuration to set this timeout? Or is it inside the drift calculation algorithms of NTP?
 
Old 02-20-2012, 09:22 AM   #4
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,887

Rep: Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016
I'm not sure where the 20 min comes from, my guess is it's pinging multiple NTP servers and doing some internal calculations, and it's the network side that's holding things up (since processor usage is likely very low during this time). On my Overo systems it usually updates the time within about 3-4 minutes of boot.
 
  


Reply

Tags
arm, clock, ntp, time, timezone


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
Log Date/time doesn't change with system time saurabhchokshi Linux - Software 5 07-07-2010 12:27 AM
system time cannot be change tvc457 Linux - Server 8 05-09-2010 12:34 PM
Device Node Change time to time issen007 Linux - General 0 01-22-2010 07:53 AM
Change system time JonCooperUK Slackware 4 04-02-2004 09:41 PM
how to change the system time? h/w Linux - Newbie 12 12-29-2003 05:53 PM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration