HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: NTP diftfile
Operating System - Linux
1829585
Members
2603
Online
109992
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2009 06:32 AM
12-23-2009 06:32 AM
Hi all;
I have configured NTP service as a server using Red Hat Enterprise 5 and it is working fine.
could you please tell me the function of the driftfile called /var/lib/ntp/drift with an example?
Please be informed that i have read a lot of documentation about this file including "man ntpd" but i didn't understand anything.
Best regards....
I have configured NTP service as a server using Red Hat Enterprise 5 and it is working fine.
could you please tell me the function of the driftfile called /var/lib/ntp/drift with an example?
Please be informed that i have read a lot of documentation about this file including "man ntpd" but i didn't understand anything.
Best regards....
Solved! Go to Solution.
- Tags:
- NTP
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2009 09:38 AM
12-23-2009 09:38 AM
Re: NTP diftfile
this file is typically used to adjust for slightly inaccurate clock frequencies..All computer clocks are inaccurate to some degree based on number of influences.
If you are really interested in supplying the correct time to your environments, I would do one of two things.
1) purchase an atomic clock of some type and hook up to this server.
2) have your primary server query a number of the internet time servers ( that use atomic clocks) then have all your servers query your primary server.
If you are really interested in supplying the correct time to your environments, I would do one of two things.
1) purchase an atomic clock of some type and hook up to this server.
2) have your primary server query a number of the internet time servers ( that use atomic clocks) then have all your servers query your primary server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2009 10:08 AM
12-23-2009 10:08 AM
Re: NTP diftfile
Dear Mr. Tim;
Thank you very much for your answer.
Could you please give me an example to clear for me the function of the driftfile?
Best Regards...
Thank you very much for your answer.
Could you please give me an example to clear for me the function of the driftfile?
Best Regards...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2009 12:07 PM
12-23-2009 12:07 PM
Solution
I'll try:
When the NTP service is started for the first time, contacts all the configured time servers, gathers some statistics and synchronizes with the one that seems most reliable. NTP tries to measure the round-trip time when accessing the time servers, and automatically compensates for it. This is made more complicated by the fact that the accuracy of the local system clock is not known at this time.
After the NTP service has achieved synchronization, it starts to monitor the system's local clock and adjust it so that the system time is brought to agreement with the time server. At the same time, the NTP service gathers statistics from the behaviour of the system's local clock.
When this has been going on for a while (I think at least 24 hours?), the NTP server looks at the local clock statistics and thinks: "Hmm, the local clock of this system seems to be a little slow/fast. It tends to drift -/+ X parts-per-million out of true time."
This drift value in Parts-per-Million is exactly what is written in the drift file.
For example, if the value in the drift file is -10.0, it means that the system clock is slow, and will "drift" 10 millionths of a second per second if running uncorrected on its own. This is equivalent of the system clock being slow by 0.864 seconds per day.
(-10/1 000 000) * 60 s/min * 60 min/hour * 24 hours/day = -0.864 s/day
When the system is rebooted, this process begins all over again... but with one difference: this time the NTP service can read the drift value for the system clock from the drift file at the very beginning, and compensate for the inaccuracy of the system clock. This eliminates much of the uncertainty in the time calculations that happen when the NTP service is synchronizing with the time servers, and thus allows it to achieve synchronization faster.
Also, if the time servers are unreachable after the system reboot, the NTP service can apply the correction factor stored in the drift file to the system clock even when no services are reachable. Making this correction makes the system clock more accurate, although it's not as good as when the service can synchronize with a reliable external time server: the value stored in the drift file is an average, and the behaviour of the system clock can depend on things like the server's workload or operating temperature.
MK
When the NTP service is started for the first time, contacts all the configured time servers, gathers some statistics and synchronizes with the one that seems most reliable. NTP tries to measure the round-trip time when accessing the time servers, and automatically compensates for it. This is made more complicated by the fact that the accuracy of the local system clock is not known at this time.
After the NTP service has achieved synchronization, it starts to monitor the system's local clock and adjust it so that the system time is brought to agreement with the time server. At the same time, the NTP service gathers statistics from the behaviour of the system's local clock.
When this has been going on for a while (I think at least 24 hours?), the NTP server looks at the local clock statistics and thinks: "Hmm, the local clock of this system seems to be a little slow/fast. It tends to drift -/+ X parts-per-million out of true time."
This drift value in Parts-per-Million is exactly what is written in the drift file.
For example, if the value in the drift file is -10.0, it means that the system clock is slow, and will "drift" 10 millionths of a second per second if running uncorrected on its own. This is equivalent of the system clock being slow by 0.864 seconds per day.
(-10/1 000 000) * 60 s/min * 60 min/hour * 24 hours/day = -0.864 s/day
When the system is rebooted, this process begins all over again... but with one difference: this time the NTP service can read the drift value for the system clock from the drift file at the very beginning, and compensate for the inaccuracy of the system clock. This eliminates much of the uncertainty in the time calculations that happen when the NTP service is synchronizing with the time servers, and thus allows it to achieve synchronization faster.
Also, if the time servers are unreachable after the system reboot, the NTP service can apply the correction factor stored in the drift file to the system clock even when no services are reachable. Making this correction makes the system clock more accurate, although it's not as good as when the service can synchronize with a reliable external time server: the value stored in the drift file is an average, and the behaviour of the system clock can depend on things like the server's workload or operating temperature.
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP