Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ntp polling is based on power of 2. The default min poll is 6 which is 64 seconds i.e 2^6 and the max poll is 10 which is 1024 seconds i.e. 2^10. The value to 10 minutes (600 seconds) is 512 seconds i.e a poll value of 9.
ntp uses a complex algorithm to find the best polling interval and if your system clock is stable should eventually settle at the default of 1024 seconds. You can set minpoll 9 and maxpoll 9 for a particular server in the /etc/ntp.conf file. If your time server or network is not stable you might need a faster polling interval then 10 minutes to keep the system clock accurate.
Please reread my post, as I understand how ntp works the polling interval is based on the power of 2
3 - 8 seconds
4 - 16 seconds
5 - 32 seconds
6 - 64 seconds
7 - 128 seconds
8 - 256 seconds
9 - 512 seconds
10 - 1024 seconds
and so on. There is no value for 600 seconds, Your closest choice is 9 i.e. 512 seconds.
Why do you think you need to change values? What problem are you trying to solve.
Better to run ntpdate with the -u option via cron. In cron you can specify every 10 minutes. One less process (ntpd) to worry about. I think the port is udp 123.
The only time your really want to run ntpd is serving time to other.
The ntp daemon is both a client and a server. ntpdate via cron can keep the clock synchronized but it forces time jumps while ntpd keeps track of clock drift and slowly skews time which overall keeps better accuracy. The one downside is that ntpd expects the computer to connected to the internet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.