chrony之maxslewrate参数测试
3 Apr 21:47:59 ntpdate[1604]: step time server 192.168.12.21 offset -20.062975 sec
[root@localhost ~]# ntpdate -d -u 192.168.12.21
3 Apr 21:48:42 ntpdate[1605]: ntpdate 4.2.6p5@1.2349-o Tue Jun 23 15:38:19 UTC 2020 (1)
Looking for host 192.168.12.21 and service ntp
host found : 192.168.12.21
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
server 192.168.12.21, port 123
stratum 4, precision -26, leap 00, trust 000
refid [192.168.12.21], delay 0.02602, dispersion 0.30565
transmitted 4, in filter 4
reference time: e7d5577c.257c6c91 Mon, Apr 3 2023 21:47:40.146
originate timestamp: e7d557b1.be0ba9f1 Mon, Apr 3 2023 21:48:33.742
transmit timestamp: e7d557c0.5f7e5bb6 Mon, Apr 3 2023 21:48:48.373
filter delay: 0.02647 0.02602 0.02661 0.02631
0.00000 0.00000 0.00000 0.00000
filter offset: -15.2980 -15.0755 -14.8532 -14.6311
0.000000 0.000000 0.000000 0.000000
delay 0.02602, dispersion 0.30565
offset -15.075595
3 Apr 21:48:48 ntpdate[1605]: step time server 192.168.12.21 offset -15.075595 sec
[root@localhost ~]# ntpdate -d -u 192.168.12.21
3 Apr 21:51:30 ntpdate[1623]: ntpdate 4.2.6p5@1.2349-o Tue Jun 23 15:38:19 UTC 2020 (1)
Looking for host 192.168.12.21 and service ntp
host found : 192.168.12.21
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
server 192.168.12.21, port 123
stratum 4, precision -26, leap 00, trust 000
refid [192.168.12.21], delay 0.02606, dispersion 0.00005
transmitted 4, in filter 4
reference time: e7d5583e.d867fab6 Mon, Apr 3 2023 21:50:54.845
originate timestamp: e7d5586f.96605c43 Mon, Apr 3 2023 21:51:43.587
transmit timestamp: e7d55868.ab08a82b Mon, Apr 3 2023 21:51:36.668
filter delay: 0.02649 0.02649 0.02620 0.02606
0.00000 0.00000 0.00000 0.00000
filter offset: 6.919055 6.919168 6.918947 6.919028
0.000000 0.000000 0.000000 0.000000
delay 0.02606, dispersion 0.00005
offset 6.919028
3 Apr 21:51:36 ntpdate[1623]: step time server 192.168.12.21 offset 6.919028 sec
You have new mail in /var/spool/mail/root
[root@localhost ~]# ntpdate -d -u 192.168.12.21
3 Apr 21:51:42 ntpdate[1624]: ntpdate 4.2.6p5@1.2349-o Tue Jun 23 15:38:19 UTC 2020 (1)
Looking for host 192.168.12.21 and service ntp
host found : 192.168.12.21
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
server 192.168.12.21, port 123
stratum 4, precision -26, leap 00, trust 000
refid [192.168.12.21], delay 0.02635, dispersion 0.00006
transmitted 4, in filter 4
reference time: e7d5583e.d867fab6 Mon, Apr 3 2023 21:50:54.845
originate timestamp: e7d5587b.26693b7c Mon, Apr 3 2023 21:51:55.150
transmit timestamp: e7d55874.3af2bb19 Mon, Apr 3 2023 21:51:48.230
filter delay: 0.02661 0.02687 0.02646 0.02635
0.00000 0.00000 0.00000 0.00000
filter offset: 6.919134 6.919424 6.919130 6.919206
0.000000 0.000000 0.000000 0.000000
delay 0.02635, dispersion 0.00006
offset 6.919206
3 Apr 21:51:48 ntpdate[1624]: step time server 192.168.12.21 offset 6.919206 sec
[root@localhost ~]# ntpdate -d -u 192.168.12.21
3 Apr 22:06:02 ntpdate[1687]: ntpdate 4.2.6p5@1.2349-o Tue Jun 23 15:38:19 UTC 2020 (1)
Looking for host 192.168.12.21 and service ntp
host found : 192.168.12.21
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
server 192.168.12.21, port 123
stratum 3, precision -26, leap 00, trust 000
refid [192.168.12.21], delay 0.02608, dispersion 0.00008
transmitted 4, in filter 4
reference time: e7d55b4f.32cce286 Mon, Apr 3 2023 22:03:59.198
originate timestamp: e7d55bd1.003b73bc Mon, Apr 3 2023 22:06:09.000
transmit timestamp: e7d55bd1.00b27cc8 Mon, Apr 3 2023 22:06:09.002
filter delay: 0.02608 0.02609 0.02663 0.02611
0.00000 0.00000 0.00000 0.00000
filter offset: -0.00233 -0.00229 -0.00213 -0.00211
0.000000 0.000000 0.000000 0.000000
delay 0.02608, dispersion 0.00008
offset -0.002333
3 Apr 22:06:09 ntpdate[1687]: adjust time server 192.168.12.21 offset -0.002333 sec
You have new mail in /var/spool/mail/root
[root@localhost ~]# ntpdate -d -u 192.168.12.21
3 Apr 22:06:13 ntpdate[1688]: ntpdate 4.2.6p5@1.2349-o Tue Jun 23 15:38:19 UTC 2020 (1)
Looking for host 192.168.12.21 and service ntp
host found : 192.168.12.21
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
transmit(192.168.12.21)
receive(192.168.12.21)
server 192.168.12.21, port 123
stratum 3, precision -26, leap 00, trust 000
refid [192.168.12.21], delay 0.02608, dispersion 0.00006
transmitted 4, in filter 4
reference time: e7d55b4f.32cce286 Mon, Apr 3 2023 22:03:59.198
originate timestamp: e7d55bdb.a19cdbc0 Mon, Apr 3 2023 22:06:19.631
transmit timestamp: e7d55bdb.a1f9ef85 Mon, Apr 3 2023 22:06:19.632
filter delay: 0.02618 0.02629 0.02608 0.02611
0.00000 0.00000 0.00000 0.00000
filter offset: -0.00198 -0.00177 -0.00176 -0.00172
0.000000 0.000000 0.000000 0.000000
delay 0.02608, dispersion 0.00006
offset -0.001766
3 Apr 22:06:19 ntpdate[1688]: adjust time server 192.168.12.21 offset -0.001766 sec
修改/etc/chrony.conf的参数maxslewrate改为100000
可以看到时间加速同步,会超出,之后会回退

浙公网安备 33010602011771号