問題描述:以Arm機器作為Server,以Ubuntu作為Client,Server透過Client發送時間包去同步那個時間,同步完時間後,對比一下他們的時間,發現隨著時間的延續,時間差更大了更大,我懷疑可能是Arm機器和Client的時鐘不一致,Coule你幫我解決這個問題嗎?謝謝。
測試環境:Arm機器:zcu104開發板,上面的soc是Zynq UltraScale+MPSoC xczu7ev-2ffvc1156。
客戶機:正常的Ubuntu系統,我們使用了三台Ubuntu系統機器,測試多次都可以重現此現象。
同時測試採用機器直連方式,基本上可以忽略網路問題的干擾,因此測試結果可信。
同步時間功能:
取得一天中的時間()
設定日期時間()
貼出結果與環境:
值以毫秒為單位
每 6 秒列印一次
diff- -1 diff- -1 diff- 0 diff- -1 diff- 0 diff- 0 diff- 1 diff- 1 diff- 2 diff- 3 diff- 2 diff- 2 diff- 4 diff- 4 diff- 5 diff- 5 diff- 5 diff- 5 diff- 6 diff- 7 diff- 7 diff- 6 diff- 7 diff- 7 diff- 7 diff- 8 diff- 8 diff- 9 diff- 9 diff- 10 diff- 10 diff- 10 diff - 10 diff- 12 diff- 12 diff- 12 diff- 12 diff- 12 diff- 13 diff- 13 diff- 14 diff- 14 diff- 15 diff- 15 diff- 15 diff- 15 diff- 16 d-iff diff- 17 diff- 17 diff- 18 diff- 18 diff- 18 diff- 18 diff- 19 diff- 19 diff- 20 diff- 21 diff- 21 diff- 21 diff- 21 diff- 22 diff- 232 diff 23 差異- 23
Ubuntu cpu(十二個處理器):uname -a:Linux ITSK-20190401KK 4.4.0-17763-Microsoft #379-Microsoft Wed Mar 06 19:16:00 PST 2019 x86_64 x86_64 x86_64 GMST/prodm/MMproux/Mprocinfo : 型號名稱:Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 步進:10 微碼:0xffffffff cpu MHz:3192.000 快取大小:256 KB
Arm cpu(四個處理器):cat /proc/cpuinfo 沒有有用的輸出uname -a:Linux xilinx-zcu104-2018_3 4.14.0-xilinx-v2018.3 #65 SMP Mon May 13 21:25:05 CST 2019 aarch64 GNU /Linux