cancel
Showing results for 
Search instead for 
Did you mean: 

how to retard ntp sync

SOLVED
Go to solution
Alpha977
Valued Contributor

how to retard ntp sync

Hello all!

I need to know how i can to retard the ntp syncronize with the ntp server.

How i can do this?

Thank you!

(points to reply)
7 REPLIES
Ivan Ferreira
Honored Contributor

Re: how to retard ntp sync

You can use the minpoll option. See man ntp for detailed information.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: how to retard ntp sync

Shalom,

service ntpd stop
or
service xntpd stop

Depending on your distribution.

You can also modify ntp.conf and restart.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
rick jones
Honored Contributor

Re: how to retard ntp sync

At the risk of showing I didn't fully understand the question...

I was under the impression that as NTP achieved sync with the time server(s) it naturally backed-off on the polling interval to something like 1024 seconds, and that if it didn't back-off it suggested that NTP was having trouble establishing and/or keeping synchronization.

In that case, setting minpoll might treat a symptom of sending many queries, but not a root cause...
there is no rest for the wicked yet the virtuous have no pillows
Alpha977
Valued Contributor

Re: how to retard ntp sync

Thanks to all for the reply.

Now i need to know how configure the minpool, because i don't find it on the man page.

Thanks!
Charles Holland
Trusted Contributor
Solution

Re: how to retard ntp sync

The minpoll is an option in your /etc/ntp.conf file. Review your ntp.conf and you will be able to figure it out. To make it active you will need to stop/start your ntp process.

Regards
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein
Charles Holland
Trusted Contributor

Re: how to retard ntp sync

Well I first thought you were talking about HPUX but then realized you were talking about Linux. Anyway it is basically the same thing. Here is an example out of my /usr/share/doc/packages/xntp/conf directory were I simply did a grep for poll I found both minpoll and maxpoll entries.

minpoll:
server 127.127.22.1 minpoll 4 # PPS quick poll

maxpoll:
manycastclient 239.1.1.1 autokey maxpoll 12 ttl 7

Now if minpoll is indicating that it will attempt ever 4 seconds to sync, and maxpoll it that it will go to 12 seconds before trying to sync how does it manage to get to a 1024 polling (slightly over 17 minutes) interval as represented by
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
LOCAL(0) LOCAL(0) 10 l 35 64 377 0.000 0.000 0.004
*server1 tick.usno.navy. 2 u 687 1024 377 0.256 -2.726 0.068
+server2 bonehed.lcs.mit 2 u 691 1024 377 0.393 -2.202 0.568

Perhaps because I don't have either min nor max in my /etc/ntp.conf file. There is probably a maximum you can specify. I might suggest that you explore http://www.eecis.udel.edu/~ntp for further answers.

Regards
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein
Alpha977
Valued Contributor

Re: how to retard ntp sync

Thank Charles for your reply!

I'm looking for this!

Thanks again!

Regards