Clock_step && 时间重置有什么区别?

Clock_step && 时间重置有什么区别?

为什么有时我看到clock_step,但有时我看到时间重置

日志1:

27 Jul 11:11:08 ntpd[100258]: 0.0.0.0 c515 05 clock_sync
27 Jul 11:13:41 ntpd[100258]: 0.0.0.0 0613 03 spike_detect +4.152511 s
27 Jul 11:27:01 ntpd[100258]: 0.0.0.0 061c 0c clock_step +4.151101 s
27 Jul 11:27:05 ntpd[100258]: 0.0.0.0 0614 04 freq_mode

日志2:

Apr  6 16:39:01 AAA3 ntpd[2576]: synchronized to 172.16.100.81, stratum 3
Apr  6 16:56:16 AAA3 ntpd[2576]: time reset +6.288863 s
Apr  6 16:59:49 AAA3 ntpd[2576]: synchronized to 172.16.100.81, stratum 3

答案1

时间重置:时间误差超出步长阈值,已重置为正确时间。

时钟步数:通常修改本地系统时钟频率,以调整与有效ntp服务器的差异。如果偏移大于 128 ms,则进行其他配置并将步进系统时钟。

另见这里

相关内容