(no title)
sgillen | 2 months ago
We actually disable NTP entirely (run it once per day or at boot) to avoid clocks jumping while recording data.
sgillen | 2 months ago
We actually disable NTP entirely (run it once per day or at boot) to avoid clocks jumping while recording data.
wpollock|2 months ago
This doesn't seem right to me. NTP with default settings should be monotonic. So no jumps. If you disable it Linux enters 11-minute mode, IIRC, and that may not be monotonic.
ComputerGuru|2 months ago
But that’s all besides the point since most sane time sync clients (regardless of protocol) generally handle small deviations (i.e. normal cases) by speeding up or slowing down the system clock, not jumping it (forward or backward).
sgillen|2 months ago
In our case the jumps where because we also have PTP disciplining the same system clock, when you have both PTP and NTP fighting over the same clock, you will see jumping with the default settings.
For us it was easier to just do a one time NTP sync at the beginning/boot, and then sync the robots local network with only PTP afterwards.
robocat|2 months ago
On Linux I think the adjtimex() system call does the equivalent https://manpages.ubuntu.com/manpages/trusty/man2/adjtimex.2....
It smears out time differences which is great for some situations and less ideal for others.
robocat|2 months ago
Worked really well for the project.
Avoiding time jumps was really worthwhile.
opello|2 months ago
sgillen|2 months ago