2018年1月26日金曜日

ntpd で時刻補正がうまく行かない場合の対症療法

新しく ThinkPad 25 で、CentOS 7 を使い始めたのですが、ntpd での時刻補正がうまくいかず、時刻がどんどんずれていく状態でした。
要因としては、新品マシンで drift 値 (/var/lib/ntpd/drift に格納される) が定まっていない点、WiFi 環境や高度な省電力機能の影響 など想像しましたが、想像したところで原因特定は難しいし、そこまで時間を割いてもいられないので、よくある対処療法 (maxpoll 設定) を行いました。

まず、どうなっていたかというと、「frequency error -561 PPM exceeds tolerance 500 PPM」というメッセージが出続けていました。
[root@hoge act27m48_1]# grep ntpd messages-20171225 
Dec 19 06:48:27 hoge ntpd[31716]: ntpd 4.2.6p5@1.2349-o Wed Apr 12 21:24:06 UTC 2017 (1)
Dec 19 06:48:27 hoge ntpd[31717]: proto: precision = 0.046 usec
Dec 19 06:48:27 hoge ntpd[31717]: 0.0.0.0 c01d 0d kern kernel time sync enabled
Dec 19 06:48:27 hoge ntpd[31717]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Dec 19 06:48:27 hoge ntpd[31717]: Listen and drop on 1 v6wildcard :: UDP 123
Dec 19 06:48:27 hoge ntpd[31717]: Listen normally on 2 lo 127.0.0.1 UDP 123
Dec 19 06:48:27 hoge ntpd[31717]: Listen normally on 3 wlp4s0 192.168.1.41 UDP 123
Dec 19 06:48:27 hoge ntpd[31717]: Listen normally on 4 virbr0 192.168.122.1 UDP 123
Dec 19 06:48:27 hoge ntpd[31717]: Listen normally on 5 lo ::1 UDP 123
Dec 19 06:48:27 hoge ntpd[31717]: Listen normally on 6 wlp4s0 fe80::e1c7:557d:897c:9baf UDP 123
Dec 19 06:48:27 hoge ntpd[31717]: Listening on routing socket on fd #23 for interface updates
Dec 19 06:48:28 hoge ntpd[31717]: 0.0.0.0 c016 06 restart
Dec 19 06:48:28 hoge ntpd[31717]: 0.0.0.0 c012 02 freq_set ntpd 0.000 PPM
Dec 19 06:48:28 hoge ntpd[31717]: 0.0.0.0 c011 01 freq_not_set
Dec 19 06:48:34 hoge ntpd[31717]: 0.0.0.0 c614 04 freq_mode
Dec 19 07:11:03 hoge ntpd[31717]: 0.0.0.0 0612 02 freq_set ntpd -3983.969 PPM
Dec 19 07:11:03 hoge ntpd[31717]: 0.0.0.0 0615 05 clock_sync
Dec 19 07:11:03 hoge ntpd[31717]: frequency error -3984 PPM exceeds tolerance 500 PPM
Dec 19 07:13:21 hoge ntpd[31717]: frequency error -561 PPM exceeds tolerance 500 PPM
Dec 19 07:16:41 hoge ntpd[31717]: frequency error -586 PPM exceeds tolerance 500 PPM
Dec 19 07:22:25 hoge ntpd[31717]: frequency error -646 PPM exceeds tolerance 500 PPM
Dec 19 07:24:35 hoge ntpd[31717]: frequency error -554 PPM exceeds tolerance 500 PPM
Dec 19 07:37:56 hoge ntpd[31717]: frequency error -578 PPM exceeds tolerance 500 PPM
Dec 19 07:46:26 hoge ntpd[31717]: frequency error -550 PPM exceeds tolerance 500 PPM
Dec 19 07:53:11 hoge ntpd[31717]: frequency error -537 PPM exceeds tolerance 500 PPM
Dec 19 07:53:12 hoge ntpd[31717]: frequency error -500 PPM exceeds tolerance 500 PPM
Dec 19 08:04:12 hoge ntpd[31717]: 0.0.0.0 0618 08 no_sys_peer
Dec 19 08:08:29 hoge ntpd[31717]: frequency error -577 PPM exceeds tolerance 500 PPM
Dec 19 08:28:19 hoge ntpd[31717]: frequency error -523 PPM exceeds tolerance 500 PPM
Dec 19 08:41:28 hoge ntpd[31717]: frequency error -515 PPM exceeds tolerance 500 PPM
Dec 19 08:57:00 hoge ntpd[31717]: frequency error -517 PPM exceeds tolerance 500 PPM
Dec 19 09:09:39 hoge ntpd[31717]: frequency error -513 PPM exceeds tolerance 500 PPM
Dec 19 09:16:14 hoge ntpd[31717]: frequency error -502 PPM exceeds tolerance 500 PPM
Dec 19 09:25:17 hoge ntpd[31717]: frequency error -502 PPM exceeds tolerance 500 PPM
Dec 19 09:40:57 hoge ntpd[31717]: frequency error -503 PPM exceeds tolerance 500 PPM
Dec 19 09:44:45 hoge ntpd[31717]: frequency error -501 PPM exceeds tolerance 500 PPM
Dec 19 10:08:51 hoge ntpd[31717]: frequency error -501 PPM exceeds tolerance 500 PPM
Dec 19 10:33:49 hoge ntpd[31717]: frequency error -501 PPM exceeds tolerance 500 PPM
Dec 19 10:44:29 hoge ntpd[31717]: 0.0.0.0 0628 08 no_sys_peer
Dec 20 22:24:33 hoge ntpd[31717]: ntpd exiting on signal 15
Dec 20 22:26:07 hoge ntpd[7956]: ntpd 4.2.6p5@1.2349-o Wed Apr 12 21:24:06 UTC 2017 (1)
Dec 20 22:26:07 hoge ntpd[7957]: proto: precision = 0.046 usec
Dec 20 22:26:07 hoge ntpd[7957]: 0.0.0.0 c01d 0d kern kernel time sync enabled
Dec 20 22:26:07 hoge ntpd[7957]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Dec 20 22:26:07 hoge ntpd[7957]: Listen and drop on 1 v6wildcard :: UDP 123
Dec 20 22:26:07 hoge ntpd[7957]: Listen normally on 2 lo 127.0.0.1 UDP 123
Dec 20 22:26:07 hoge ntpd[7957]: Listen normally on 3 wlp4s0 192.168.1.41 UDP 123
Dec 20 22:26:07 hoge ntpd[7957]: Listen normally on 4 virbr0 192.168.122.1 UDP 123
Dec 20 22:26:07 hoge ntpd[7957]: Listen normally on 5 lo ::1 UDP 123
Dec 20 22:26:07 hoge ntpd[7957]: Listen normally on 6 wlp4s0 fe80::e1c7:557d:897c:9baf UDP 123
Dec 20 22:26:07 hoge ntpd[7957]: Listening on routing socket on fd #23 for interface updates
Dec 20 22:26:07 hoge ntpd[7957]: 0.0.0.0 c016 06 restart
Dec 20 22:26:07 hoge ntpd[7957]: 0.0.0.0 c012 02 freq_set ntpd 0.000 PPM
Dec 20 22:26:07 hoge ntpd[7957]: 0.0.0.0 c011 01 freq_not_set
Dec 20 22:26:15 hoge ntpd[7957]: 0.0.0.0 c614 04 freq_mode
Dec 20 22:47:32 hoge ntpd[7957]: 0.0.0.0 0612 02 freq_set ntpd 36169.073 PPM
Dec 20 22:47:32 hoge ntpd[7957]: 0.0.0.0 0615 05 clock_sync
Dec 20 22:47:32 hoge ntpd[7957]: frequency error 36169 PPM exceeds tolerance 500 PPM
Dec 20 22:54:13 hoge ntpd[7957]: frequency error 2051 PPM exceeds tolerance 500 PPM
Dec 20 22:56:29 hoge ntpd[7957]: frequency error 1025 PPM exceeds tolerance 500 PPM
Dec 20 22:59:51 hoge ntpd[7957]: frequency error 1277 PPM exceeds tolerance 500 PPM
Dec 20 23:03:11 hoge ntpd[7957]: frequency error 1269 PPM exceeds tolerance 500 PPM
Dec 20 23:04:20 hoge ntpd[7957]: frequency error 566 PPM exceeds tolerance 500 PPM
Dec 20 23:08:46 hoge ntpd[7957]: frequency error 755 PPM exceeds tolerance 500 PPM
Dec 20 23:26:10 hoge ntpd[7957]: frequency error 1495 PPM exceeds tolerance 500 PPM
Dec 20 23:35:04 hoge ntpd[7957]: frequency error 1006 PPM exceeds tolerance 500 PPM
Dec 20 23:43:43 hoge ntpd[7957]: frequency error 990 PPM exceeds tolerance 500 PPM
Dec 21 00:01:10 hoge ntpd[7957]: frequency error 1482 PPM exceeds tolerance 500 PPM
...
Dec 22 11:54:14 hoge ntpd[7957]: frequency error 510 PPM exceeds tolerance 500 PPM
Dec 22 11:55:20 hoge ntpd[7957]: frequency error 501 PPM exceeds tolerance 500 PPM
Dec 22 12:04:10 hoge ntpd[7957]: frequency error 500 PPM exceeds tolerance 500 PPM
そして、ntpq -np の定期採取データでは、次のように offset が大きくなり続けている状態でした。
[root@hoge act27m48_1]# zcat actlog/ntpq-np.7.gz | reduce_actlog -i 7200
2017-12-20 03:21:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-20 03:21:12 ==============================================================================
2017-12-20 03:21:12  157.7.208.12    133.243.238.244  2 u  803 1024  377   21.591  29171.2 1948.21
2017-12-20 03:21:12  157.7.153.56    133.243.238.244  2 u  394 1024   77   49.348  29404.9 2474.12
2017-12-20 03:21:12  162.210.110.4   216.218.254.202  2 u  436 1024  367  187.280  29898.2 2892.76
2017-12-20 03:21:12  203.112.17.81   203.112.1.4      4 u  206 1024  377   22.303  30034.7 2416.41

2017-12-20 05:21:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-20 05:21:12 ==============================================================================
2017-12-20 05:21:12  157.7.208.12    133.243.238.244  2 u  577 1024  377   21.715  33002.6 1976.60
2017-12-20 05:21:12  157.7.153.56    133.243.238.244  2 u  236 1024  377   18.845  33191.1 1962.56
2017-12-20 05:21:12  162.210.110.4   216.218.192.202  2 u  243 1024  377  171.204  33157.1 2007.93
2017-12-20 05:21:12  203.112.17.81   203.112.1.4      4 u  980 1024  377   23.695  33348.4 2461.91

2017-12-20 07:21:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-20 07:21:12 ==============================================================================
2017-12-20 07:21:12  157.7.208.12    133.243.238.244  2 u  471 1024  377   23.319  37320.8 2407.92
2017-12-20 07:21:12  157.7.153.56    10.84.87.146     2 u   63 1024  377   17.479  36987.7 1952.78
2017-12-20 07:21:12  162.210.110.4   216.218.192.202  2 u 1029 1024  377  174.197  37022.4 2489.83
2017-12-20 07:21:12  203.112.17.81   203.112.1.4      4 u  832 1024  377   37.843  36601.8 1961.26

2017-12-20 09:21:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-20 09:21:12 ==============================================================================
2017-12-20 09:21:12  157.7.208.12    133.243.238.243  2 u  302 1024  377   23.595  41119.4 2428.08
2017-12-20 09:21:12  157.7.153.56    133.243.238.243  2 u  951 1024  377   20.092  40783.7 2421.30
2017-12-20 09:21:12  162.210.110.4   216.218.254.202  2 u  861 1024  357  227.002  40794.2 2819.32
2017-12-20 09:21:12  203.112.17.81   203.112.1.4      4 u  593 1024  367   24.574  40960.9 2878.66

2017-12-20 11:21:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-20 11:21:12 ==============================================================================
2017-12-20 11:21:12  157.7.208.12    133.243.238.244  2 u  167 1024  375   24.937  44902.5 2908.56
2017-12-20 11:21:12  157.7.153.56    103.1.106.69     2 u  721 1024  377   23.686  44656.0 2485.00
2017-12-20 11:21:12  162.210.110.4   216.218.254.202  2 u  673 1024  377  168.522  41373.8 1917.92
2017-12-20 11:21:12  203.112.17.81   203.112.1.4      4 u  353 1024  357   27.599  44798.3 2838.39

2017-12-20 13:21:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-20 13:21:12 ==============================================================================
2017-12-20 13:21:12  157.7.208.12    133.243.238.244  2 u  947 1024  137   23.724  47656.8 2561.88
2017-12-20 13:21:12  157.7.153.56    133.243.238.164  2 u  517 1024  375   20.906  48433.1 2923.86
2017-12-20 13:21:12  162.210.110.4   216.218.254.202  2 u  398 1024  377  161.771  47935.8 2050.31
2017-12-20 13:21:12  203.112.17.81   203.112.1.4      4 u  149 1024  377   21.381  48623.0 2463.45

2017-12-20 15:21:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-20 15:21:12 ==============================================================================
2017-12-20 15:21:12  157.7.208.12    133.243.238.244  2 u  757 1024  367   25.141  52019.7 2874.31
2017-12-20 15:21:12  157.7.153.56    133.243.238.163  2 u  279 1024  377   22.055  52265.0 2455.92
2017-12-20 15:21:12  162.210.110.4   216.218.192.202  2 u  243 1024  377  198.720  52260.0 2454.19
2017-12-20 15:21:12  203.112.17.81   203.112.1.4      4 u 1026 1024  337   22.962  51880.8 2753.55

2017-12-20 17:21:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-20 17:21:12 ==============================================================================
2017-12-20 17:21:12  157.7.208.12    133.243.238.244  2 u  606 1024  377   20.566  55803.7 2421.95
2017-12-20 17:21:12  157.7.153.56    133.243.238.243  2 u   28 1024  377   28.573  55573.5 1999.49
2017-12-20 17:21:12  162.210.110.4   216.218.192.202  2 u   54 1024  377  199.352  55004.9 1610.15
2017-12-20 17:21:12  203.112.17.81   203.112.1.4      4 u 1924 1024  376   21.054  54573.8 1958.08

2017-12-20 19:21:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-20 19:21:12 ==============================================================================
2017-12-20 19:21:12  157.7.208.12    133.243.238.243  2 u  466 1024  377   20.950  59584.6 2416.40
2017-12-20 19:21:12  157.7.153.56    103.1.106.69     2 u 1955 1024  356   22.742  58262.9 2388.64
2017-12-20 19:21:12  162.210.110.4   216.218.192.202  2 u  957 1024  377  212.612  59303.4 2445.12
2017-12-20 19:21:12  203.112.17.81   203.112.1.4      4 u  711 1024  175   63.793  59463.6 3142.28

2017-12-20 21:21:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-20 21:21:12 ==============================================================================
2017-12-20 21:21:12  157.7.208.12    133.243.238.244  2 u  245 1024  377   24.519  62854.3 1972.96
2017-12-20 21:21:12  157.7.153.56    10.84.87.146     2 u 1818 1024  156   26.158  62048.7 2702.15
2017-12-20 21:21:12  162.210.110.4   216.218.254.202  2 u  778 1024  377  319.841  63048.6 2401.36
2017-12-20 21:21:12  203.112.17.81   203.112.1.4      4 u 1558 1024  202   79.498  62739.2 4552.75
施した設定は次の通りです。
[root@hoge act27m48_1]# less actlog/trackfile/2017-12/23-Sat-0341.diff.gz
...
-TOP   0100644  root     root      2017-04-12 22:25:40  /etc/ntp.conf
+TOP   0100644  root     root      2017-12-20 22:25:53  /etc/ntp.conf
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 # For more information about this file, see the man pages
 # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).
@@ -56296,10 +51027,10 @@
 
 # Use public servers from the pool.ntp.org project.
 # Please consider joining the pool (http://www.pool.ntp.org/join.html).
-server 0.centos.pool.ntp.org iburst
-server 1.centos.pool.ntp.org iburst
-server 2.centos.pool.ntp.org iburst
-server 3.centos.pool.ntp.org iburst
+server 0.centos.pool.ntp.org iburst maxpoll 7
+server 1.centos.pool.ntp.org iburst maxpoll 7
+server 2.centos.pool.ntp.org iburst maxpoll 7
+server 3.centos.pool.ntp.org iburst maxpoll 7
 
 #broadcast 192.168.1.255 autokey       # broadcast server
 #broadcastclient                       # broadcast client
@@ -62182,6 +56913,532 @@
こちらを設定後に、drift 値をリセットして再起動 (2017-12-20 22:26頃) しました。下記は、bash の history から振り返りです。echo 0 > /var/lib/ntp/drift でもいいはずですが、この時は削除してました。
[root@hoge ~]# rm /var/lib/ntp/drift
[root@hoge ~]# systemctl start ntpd.service
次は、収束に向かった時間帯のデータです。
[root@hoge act27m48_1]# zcat actlog/ntpq-np.{6,5,4}.gz | reduce_actlog -i 14400
2017-12-21 03:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-21 03:27:12 ==============================================================================
2017-12-21 03:27:12 +88.198.12.78    254.48.138.1     2 u   16   64  377  345.262  56792.7  70.685
2017-12-21 03:27:12 +62.168.65.36    10.0.0.1         4 u   42   64  377  347.361  56808.1  95.757
2017-12-21 03:27:12 *160.16.75.242   103.1.106.69     2 u   50   64  377   17.471  56932.2  92.188
2017-12-21 03:27:12 +77.78.107.252   193.79.237.14    2 u   21   64  377  345.141  56783.5  74.145

2017-12-21 07:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-21 07:27:12 ==============================================================================
2017-12-21 07:27:12 +88.198.12.78    192.53.103.108   2 u   61   64  377  320.188  49880.2 104.438
2017-12-21 07:27:12 +62.168.65.36    10.0.0.1         4 u    6   64  377  377.985  49867.2  97.867
2017-12-21 07:27:12 *160.16.75.242   103.1.106.69     2 u   56   64  377   18.170  49860.1  93.587
2017-12-21 07:27:12 +77.78.107.252   193.79.237.14    2 u   18   64  377  291.710  49848.3  75.983

2017-12-21 11:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-21 11:27:12 ==============================================================================
2017-12-21 11:27:12 +88.198.12.78    192.53.103.108   2 u    3   64  377  331.510  42933.5 136.385
2017-12-21 11:27:12 -62.168.65.36    10.0.0.1         4 u   57   64  377  333.708  42801.5  91.268
2017-12-21 11:27:12 *160.16.75.242   103.1.106.69     2 u    1   64  377   19.543  42854.0  91.711
2017-12-21 11:27:12 +77.78.107.252   193.79.237.14    2 u   64   64  377  339.216  43001.7 179.162

2017-12-21 15:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-21 15:27:12 ==============================================================================
2017-12-21 15:27:12 +88.198.12.78    131.188.3.220    2 u   44   64  377  393.819  35847.8  67.966
2017-12-21 15:27:12 +62.168.65.36    10.0.0.1         4 u   51   64  337  401.860  36045.8 247.499
2017-12-21 15:27:12 *160.16.75.242   103.1.106.69     2 u   58   64  377   20.191  35969.4  80.117
2017-12-21 15:27:12 +77.78.107.252   193.79.237.14    2 u   60   64  377  293.774  36014.0 152.626

2017-12-21 19:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-21 19:27:12 ==============================================================================
2017-12-21 19:27:12 +88.198.12.78    192.53.103.108   2 u    1   64  177  406.766  29028.5 212.348
2017-12-21 19:27:12 +62.168.65.36    10.0.0.1         4 u   32   64  377  409.769  28954.1 171.501
2017-12-21 19:27:12 *160.16.75.242   103.1.106.69     2 u   17   64  377   18.957  28934.9  78.838
2017-12-21 19:27:12 +77.78.107.252   193.79.237.14    2 u   29   64  377  363.591  28820.2  95.755

2017-12-21 23:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-21 23:27:12 ==============================================================================
2017-12-21 23:27:12 +88.198.12.78    131.188.3.221    2 u   49   64  377  473.349  21821.2  79.942
2017-12-21 23:27:12 -62.168.65.36    10.0.0.1         4 u   35   64  277  479.798  21832.4  77.411
2017-12-21 23:27:12 *160.16.75.242   103.1.106.69     2 u   64   64  377   19.829  21882.8 146.781
2017-12-21 23:27:12 +77.78.107.252   193.79.237.14    2 u   19   64  377  330.402  22054.9 203.061

2017-12-22 03:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-22 03:27:12 ==============================================================================
2017-12-22 03:27:12 +88.198.12.78    131.188.3.221    2 u   35   64  377  458.565  14876.5  54.687
2017-12-22 03:27:12 -62.168.65.36    10.0.0.1         4 u   15   64  377  500.141  14913.4  87.029
2017-12-22 03:27:12 *160.16.75.242   103.1.106.69     2 u   64   64  377   21.428  14939.8 117.483
2017-12-22 03:27:12 +77.78.107.252   193.79.237.14    2 u   15   64  377  314.150  15046.0 150.638

2017-12-22 07:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-22 07:27:12 ==============================================================================
2017-12-22 07:27:12 +88.198.12.78    192.53.103.108   2 u   10   64  377  417.045  8068.63 187.511
2017-12-22 07:27:12 -62.168.65.36    10.0.0.1         4 u   14   64  377  417.965  7880.89  95.622
2017-12-22 07:27:12 *160.16.75.242   103.1.106.69     2 u   49   64  377   19.356  8112.88 113.098
2017-12-22 07:27:12 +77.78.107.252   193.79.237.14    2 u    4   64  377  299.745  7951.78  88.928

2017-12-22 11:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-22 11:27:12 ==============================================================================
2017-12-22 11:27:12 +88.198.12.78    192.53.103.108   2 u   12   64  377  393.500  911.438  83.464
2017-12-22 11:27:12 +62.168.65.36    10.0.0.1         4 u   13   64  377  368.658  928.835  88.341
2017-12-22 11:27:12 *160.16.75.242   103.1.106.69     2 u   20   64  377   19.737  931.036 148.066
2017-12-22 11:27:12 +77.78.107.252   193.79.237.14    2 u   32   64  377  293.024  1078.17 145.997

2017-12-22 15:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-22 15:27:12 ==============================================================================
2017-12-22 15:27:12 +88.198.12.78    192.53.103.108   2 u  116   64  366  350.150  -291.90  56.264
2017-12-22 15:27:12 -62.168.65.36    10.0.0.1         4 u   23   64  377  364.775  -287.10  66.848
2017-12-22 15:27:12 *160.16.75.242   103.1.106.69     2 u   63   64  377   17.308  -268.27   8.694
2017-12-22 15:27:12 +77.78.107.252   193.79.237.14    2 u   15   64  377  304.360  -284.94  48.563

2017-12-22 19:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-22 19:27:12 ==============================================================================
2017-12-22 19:27:12 +88.198.12.78    130.149.17.21    2 u   32   64  375  350.803  -105.18  35.724
2017-12-22 19:27:12 -62.168.65.36    10.0.0.1         4 u   28   64  355  397.018  -133.22  65.489
2017-12-22 19:27:12 *160.16.75.242   103.1.106.69     2 u   64   64  377   18.326  -77.383   2.308
2017-12-22 19:27:12 +77.78.107.252   193.79.237.14    2 u   32   64  377  274.139  -83.737  53.700

2017-12-22 23:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-22 23:27:12 ==============================================================================
2017-12-22 23:27:12 +88.198.12.78    129.69.1.170     2 u   20   64  377  406.888  -82.067  62.065
2017-12-22 23:27:12 -62.168.65.36    10.0.0.1         4 u    2   64  377  459.460  -96.257  39.912
2017-12-22 23:27:12 *160.16.75.242   103.1.106.69     2 u   63   64  377   19.970  -20.498   2.315
2017-12-22 23:27:12 +77.78.107.252   193.79.237.14    2 u    6   64  377  272.188  -31.527  50.493

2017-12-23 03:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-23 03:27:12 ==============================================================================
2017-12-23 03:27:12 +88.198.12.78    130.149.17.8     2 u   65   64  377  407.321  -59.207  58.910
2017-12-23 03:27:12 -62.168.65.36    10.0.0.1         4 u   33   64  377  440.553  -71.257  58.737
2017-12-23 03:27:12 *160.16.75.242   103.1.106.69     2 u    3   64  377   17.629   -5.087   2.468
2017-12-23 03:27:12 +77.78.107.252   193.79.237.14    2 u    3   64  377  262.537  -12.461  46.262

2017-12-23 07:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-23 07:27:12 ==============================================================================
2017-12-23 07:27:12 +88.198.12.78    192.53.103.108   2 u   14  128  377  353.793  -38.173  31.635
2017-12-23 07:27:12 -62.168.65.36    10.0.0.1         4 u  128  128  357  314.421   -6.258  65.600
2017-12-23 07:27:12 *160.16.75.242   103.1.106.69     2 u   56  128  377   20.802   -2.770   2.526
2017-12-23 07:27:12 +77.78.107.252   193.79.237.14    2 u   35  128  377  293.276  -21.234  44.357

2017-12-23 11:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-23 11:27:12 ==============================================================================
2017-12-23 11:27:12 +88.198.12.78    131.188.3.221    2 u   72  128  377  355.471  -32.193  52.514
2017-12-23 11:27:12 -62.168.65.36    10.0.0.1         4 u   35  128  377  322.267   -6.150  65.073
2017-12-23 11:27:12 *160.16.75.242   103.1.106.69     2 u    6  128  377   17.714   -0.544  21.378
2017-12-23 11:27:12 +77.78.107.252   193.79.237.14    2 u   89  128  377  273.443   -7.268  69.730

2017-12-23 15:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-23 15:27:12 ==============================================================================
2017-12-23 15:27:12 +88.198.12.78    130.149.17.21    2 u  218  128  376  398.335  -36.899  66.687
2017-12-23 15:27:12 -62.168.65.36    10.0.0.1         4 u   69  128  377  399.607  -50.116  52.741
2017-12-23 15:27:12 *160.16.75.242   103.1.106.69     2 u   54  128  377   18.504    3.443   2.251
2017-12-23 15:27:12 +77.78.107.252   193.79.237.14    2 u  130  128  377  286.565   -6.324  43.542

2017-12-23 19:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-23 19:27:12 ==============================================================================
2017-12-23 19:27:12 +88.198.12.78    192.53.103.108   2 u    3  128  377  420.145  -59.828  63.652
2017-12-23 19:27:12 -62.168.65.36    10.0.0.1         4 u  123  128  277  427.106  -55.130  69.321
2017-12-23 19:27:12 *160.16.75.242   103.1.106.69     2 u   25  128  377   18.303    5.238   2.064
2017-12-23 19:27:12 +77.78.107.252   193.79.237.14    2 u  103  128  377  266.104   -2.941  57.983

2017-12-23 23:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-23 23:27:12 ==============================================================================
2017-12-23 23:27:12 +88.198.12.78    192.53.103.108   2 u   72  128  377  450.629  -74.868  52.780
2017-12-23 23:27:12 -62.168.65.36    10.0.0.1         4 u   56  128  377  424.857  -52.707  45.454
2017-12-23 23:27:12 *160.16.75.242   103.1.106.69     2 u   53  128  377   18.711    0.328   5.487
2017-12-23 23:27:12 +77.78.107.252   193.79.237.14    2 u  100  128  377  279.764   -7.365  46.453

2017-12-24 03:27:12      remote           refid      st t when poll reach   delay   offset  jitter
2017-12-24 03:27:12 ==============================================================================
2017-12-24 03:27:12 +88.198.12.78    192.53.103.108   2 u    1  128  367  403.737  -48.499  55.266
2017-12-24 03:27:12 -62.168.65.36    10.0.0.1         4 u   17  128  377  417.837  -53.391  69.070
2017-12-24 03:27:12 *160.16.75.242   103.1.106.69     2 u   10  128  377   19.883    3.392   1.573
2017-12-24 03:27:12 +77.78.107.252   193.79.237.14    2 u   73  128  377  315.090  -27.232  37.709
最後に、今現在の drift 値です。
[root@hoge ~]# ntpq -np
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
-178.33.126.120  213.251.128.249  2 u  128  128  377  286.983   61.092  46.824
+129.250.35.251  249.224.99.213   2 u   38  128  377   19.186   73.376   2.471
+45.76.221.157   103.1.106.69     2 u   95  128  377   21.958   76.460   1.490
*85.114.26.194   .DTS.            1 u   95  128  377  223.261  107.454  34.164
[root@hoge ~]# cat /var/lib/ntp/drift 
-14.359
ThinkPad は、何台も利用してきましたが、今回のように maxpoll の調整が必要になったことはなかったのですが、やっぱり最新の高度化した省電力機能のせいではないか?という憶測を抱いています。
それにしても、ThinkPad 25 のキーボード(バックライト光らせるとカッコイイ)は、なかなか快適です。CentOS 7.4 の動作もほとんど問題なし。どうにかして、Linux でも GeForce 940MX を活用できないのか?とは思うんですが、FireFox の動き(スクロール)もスムーズだし、ま、いいか。
[root@hoge ~]# dmidecode --type 1
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.

Handle 0x000C, DMI type 1, 27 bytes
System Information
 Manufacturer: LENOVO
 Product Name: 20K70003JP
 Version: ThinkPad 25
 Serial Number: xxxxxxxx
 UUID: 307F584C-2BAE-11B2-A85C-C18B88313792
 Wake-up Type: Power Switch
 SKU Number: LENOVO_MT_20K7_BU_Think_FM_ThinkPad 25
 Family: ThinkPad 25

[root@hoge ~]# uversion 
CentOS Linux release 7.4.1708           20K70003JP

BIOS version  : N1QET63W (1.38 )  08/22/2017
System serial : xxxxxxxx

CPU model  : Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Processors : 4  (1 sockets, 2 cores per CPU, Hyperthreading: enabled)

Memory : 15649 MB

Linux : 3.10.0-693.11.6.el7.x86_64  x86_64  (hoge)

[root@hoge ~]# lspci
00:00.0 Host bridge: Intel Corporation Device 5904 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1)
00:1c.6 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #7 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
00:1d.2 PCI bridge: Intel Corporation Device 9d1a (rev f1)
00:1f.0 ISA bridge: Intel Corporation Device 9d58 (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-V (rev 21)
02:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
04:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
3e:00.0 Non-Volatile memory controller: Lenovo Device 0004
2018-04-08追記
ひさびさに drift 値を確認してみました。
[root@hoge ~]# cat /var/lib/ntp/drift 
15.581
前に確認したときの値が、-14.359 だったのですが、今回は +15.581 と結構ブレていますね。仕事上、新旧いろいろなマシンを触ってますが、こんなにブレるマシンは見たことなかったです。

0 件のコメント:

コメントを投稿

人気ブログランキングへ にほんブログ村 IT技術ブログへ