Ways to accurate synchronize clock with linux

1

I have a computer that doesn't has internet, I put NTP to sync with a USB GPS and serve NTP to other computers. That's working, but sometimes the server is not suitable for synchronization and I need that times between computers are not more than 100ms desynchronized, because I have triggers that get references by time. Computer are all in local network and sometimes I need to call ntpdate several times until get offset lower (e.g. below).

15 Jul 15:25:07 ntpdate[10755]: adjust time server 192.168.0.10 offset -0.147476 sec
15 Jul 15:25:16 ntpdate[10811]: adjust time server 192.168.0.10 offset -0.144538 sec
15 Jul 15:25:25 ntpdate[10815]: adjust time server 192.168.0.10 offset -0.142689 sec
15 Jul 15:26:07 ntpdate[10875]: adjust time server 192.168.0.10 offset -0.126713 sec
15 Jul 15:26:18 ntpdate[10878]: adjust time server 192.168.0.10 offset -0.122535 sec

The question is: Is there a way to get my computers synchronized faster and with accuracy? With NTP or which tool is better?

John Job

Posted 2019-07-15T18:29:30.820

Reputation: 15

Is this a local network? – Daniel B – 2019-07-15T18:43:08.233

@DanielB yes, it is – John Job – 2019-07-15T20:17:58.527

@JohnJob why can't you just run ntp normally rather than calling ntpdate (Which is depreciated)? – user3788685 – 2019-07-31T17:31:16.040

Answers

1

an alternative to ntp is chrony. https://chrony.tuxfamily.org/comparison.html

SavGuard

Posted 2019-07-15T18:29:30.820

Reputation: 114

Thanks, resolved with chrony – John Job – 2019-12-17T11:57:12.153