Hello! Such a problem, the server time flies very fast forward, I would like to understand the causes of this phenomenon and how to eliminate it.

I don’t remember what time I did the synchronization today, around 13:00 probably

u@devel:~$ sudo ntpdate -u ntp.ubuntu.com 20 Jul 17:45:46 ntpdate[30158]: step time server 91.189.94.4 offset -8.288376 sec 

In 4.5 hours, 8.2 seconds came over

 u@devel:~$ sudo ntpdate -u ntp.ubuntu.com [sudo] password for u: 20 Jul 18:12:00 ntpdate[925]: step time server 91.189.94.4 offset -0.823899 sec 

Well, here too, in half an hour almost a second came over ...

Like this? What is it? How to deal with it? Put a script in cron and start synchronization every hour?

  • If the server hardware is most likely a curve / float generator in the RTC, and yes, you will have to synchronize NTP quite often. If virtual, try chopping off time synchronization with the host. - Vesper
  • In general, of course, you need to install ntpd . still look at this question . - aleksandr barakin

1 answer 1

if there are no periodic large accelerations / decelerations, which are mentioned, for example, in this question , then to synchronize the time it is necessary to install ntpd :

 $ sudo apt-get install ntpd 

if the time in the system is too much different from the “reference” (more than a few seconds), then before installing (or rather, before starting) ntpd you must set the time by the ntpdate client:

 $ sudo ntpdate ru.pool.ntp.org 

in general, I would recommend installing this daemon always on all systems (except, perhaps, for something narrowly specialized).