Re: ajusting clock in steps



Marcus König wrote:

Hello NG,

i compiled ntp version 4.2.0 on AIX 5.1 with a hopf-clock. After that i
compiled this version on AIX 5.2 run as Client for the 5.1. My problem
ist that after a time the clocks are synchronized in one step.

How can I configure the client that he sets the time in steps like 1
second in one hour?

thanks for answering.

regards marcus.


Please see the the ntpd documentation at http://www.eecis.udel.edu/~mills/ntp/html/ntpd.html or it's also available in your ntp-4.2.0.html directory.

In brief, ntpd slews the clock to correct errors less than 128 milliseconds or steps the clock if the error is greater. You can start ntpd with the -x option which will change the threshold to 600 seconds. Doing so, without first setting the clock, will require one full day to correct an error of 42 seconds!!

An error large enough to cause ntpd to step the clock is usually an indication of a problem somewhere.

Best practice is to start ntpd with the -g option which causes ntpd to set the clock on a one time basis. Do so before starting any application that needs either the correct time or monotonically increasing time.

Once started with the correct time, ntpd should be able to maintain the local clock within 5-10 milliseconds of the correct time using internet servers or within 1-2 milliseconds using a server on the LAN.
.



Relevant Pages

  • Re: time tracking function in radio controlled clocks
    ... building in a seriously accurate time function is not a priority for the manufacturers - no one sends their computer back to the shop because the clock runs slow. ... The full implementation of the NTP protocol in the program "ntpd" is geared towards improving the accuracy of the local clock, by both resetting to an accurate source, and trimming the local clock to adjust for drift, as measured over time. ... Note that I am referring specifically to "ntpd", which implements the full NTP spec, *not* the multitudinous SNTP clients, such as Dimension 4, or the w32time client supplied by Microsoft for Windows 2000 and Windows XP. ...
    (alt.horology)
  • Re: ntpd and database servers
    ... On the first server, ntpd was running but refusing to sync the clock because of the time difference. ... Once you have them set to the correct time, NTPD should be able to maintain the correct time, which it will do by slightly adjusting the "size" of the ticks. ...
    (comp.protocols.time.ntp)
  • Re: clock too slow - big time offset with ntpdate
    ... I think you misunderstand how ntpd works vs. how ntpdate works. ... Turn off all of the power management, and any other service that might be affecting the clock, and then reboot. ... If your system is able to maintain correct time under these circumstances, start adding things in until you find the culprit and let us know. ... in my kernel config file. ...
    (freebsd-stable)
  • Re: setting the time/frequency before starting ntpd to avoid slow convergence (PPS)
    ... If NTPD is running, your clock should be very close to the correct time. ... gasoline powered generator for those times when the power company really ...
    (comp.protocols.time.ntp)
  • Re: Trouble with XP IPv6 ntp client (still unable to connect to link local ntp server)
    ... The VM clients don't need it, they get their clock from the ... ESX product gave even better results when running ntpd on the client OS. ... We run ESX systems with ntpd in the client and it works fine. ...
    (comp.protocols.time.ntp)