LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-31-2015, 03:37 AM   #1
TeaYoung
LQ Newbie
 
Registered: Apr 2013
Posts: 26

Rep: Reputation: Disabled
Is the difference between the system time of the Rumtime normal?


Hello.

I have to questions regarding the System Clock. (# date)

It is it normal hours during the Runtime System is getting faster or slower?

I know it can be synchronized with the network time through the ntp or the rdate.

If you are not going to use the network system time is slow under normal circumstances it can not be avoided?
 
Old 08-31-2015, 04:14 AM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
I am not sure exactlyhow time is kepton the kernel, but I am sure it must have something to do with the hardware clock. The hardware clock can skew over a period of time. Differences in time may be caused by your battery running flat.

Will be interesting to find out how all this is done.
 
Old 08-31-2015, 04:36 AM   #3
TeaYoung
LQ Newbie
 
Registered: Apr 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ericson007 View Post
I am not sure exactlyhow time is kepton the kernel, but I am sure it must have something to do with the hardware clock. The hardware clock can skew over a period of time. Differences in time may be caused by your battery running flat.

Will be interesting to find out how all this is done.
I know the details related to the hardware clock (RTC, RTC battery).

I know that you apply to the hardware clock with hwclock command to boot from the system clock.

Runtime is the time of system clock management in the Kernel would wonder whether the error is a natural phenomenon.
 
Old 08-31-2015, 05:07 AM   #4
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
If my interpretation of what you are asking about is correct, then I believe it may be a factor of kernel tick frequency. So time scheduling within the kernel for interupts and tasks etc. I believe that indirectly this could skew the clock because probably that same system is what drives the time, hence the advice ntp servers must not be on virtual machines where the effect can be greatly magnified.
 
Old 08-31-2015, 05:41 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,729

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
Is this a real or virtual machine?

Not an expert but basically the kernel uses a timer to increment a counter which is the system clock. Depending on the hardware and other options like frequency scaling it can run slow or fast. There are ways to manually discipline your clock by using adjtimex but depending on the timer and how it drifts may not be practical.

https://the-b.org/Linux_timers

Basically the sole purpose of the hardware clock is to set the system clock at boot time.
 
Old 08-31-2015, 08:24 AM   #6
TeaYoung
LQ Newbie
 
Registered: Apr 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ericson007 View Post
if my interpretation of what you are asking about is correct, then i believe it may be a factor of kernel tick frequency. So time scheduling within the kernel for interupts and tasks etc. I believe that indirectly this could skew the clock because probably that same system is what drives the time, hence the advice ntp servers must not be on virtual machines where the effect can be greatly magnified.
Thank you for comment.
Would If I understand getting slower and System Time (date) Runtime on a Linux system during a long period of time? I am not a virtual machine

Last edited by TeaYoung; 08-31-2015 at 08:25 AM.
 
Old 08-31-2015, 08:36 AM   #7
TeaYoung
LQ Newbie
 
Registered: Apr 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Is this a real or virtual machine?

Not an expert but basically the kernel uses a timer to increment a counter which is the system clock. Depending on the hardware and other options like frequency scaling it can run slow or fast. There are ways to manually discipline your clock by using adjtimex but depending on the timer and how it drifts may not be practical.

https://the-b.org/Linux_timers

Basically the sole purpose of the hardware clock is to set the system clock at boot time.
Thank you for comment.
I am not a virtual machine.
Like you and I seem to be able to slow or fast because of the frequency.
100% stable CPU frequency will not think it exists.
Thus, the stability of the System Time(#date) CPU frequency I think that this can slow down or speed up.
Do you also think so?


It has been helpful in your comments.
 
Old 08-31-2015, 04:35 PM   #8
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
A while back i was reading up on getting the most accurate time for my idm. Ptp came up as really good but never bothered implementing it. Apparantly accurate to milliseconds. There was also talk of integrating gps hardware for accurate time. Thus on critical time systems, the drift experienced would be really milliseconds per day if not allowed to update. The hardware solutions though can get pretty expensive really quickly.
 
Old 08-31-2015, 09:08 PM   #9
TeaYoung
LQ Newbie
 
Registered: Apr 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ericson007 View Post
A while back i was reading up on getting the most accurate time for my idm. Ptp came up as really good but never bothered implementing it. Apparantly accurate to milliseconds. There was also talk of integrating gps hardware for accurate time. Thus on critical time systems, the drift experienced would be really milliseconds per day if not allowed to update. The hardware solutions though can get pretty expensive really quickly.
I can not even use the network even GPS.
System Clock is understood that vary depending on the hardward clock.
hardward clock goes faster system clock goes faster.
hardward clock is slow slow system clock.
My thought is that correct?
 
Old 09-01-2015, 12:34 AM   #10
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
I think more correct would be the frequency of kernel access to the ticker for the clock, which in turn would likely be affected by cpu etc.
 
1 members found this post helpful.
  


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
what is the difference between real root system and normal root system zameer_india Linux - Newbie 17 07-04-2012 12:18 PM
System time correct for root, wrong for normal user? dx0r515t Slackware 2 07-21-2006 05:30 PM
System time goes twice as fast as normal on FC4 SMP kernel H_TeXMeX_H Linux - Hardware 6 05-20-2006 09:03 PM
My system time goes twince as fast as normal!!! robin.w Linux - Software 5 03-21-2006 06:50 AM
System time goes twince as fast as normal robin.w Linux - Laptop and Netbook 1 03-19-2006 10:23 AM

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

All times are GMT -5. The time now is 05:17 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