将时钟源“tsc-early”标记为不稳定,因为偏差太大:以及 ubuntu 服务器 22.04.4 LTS 上的时间漂移

将时钟源“tsc-early”标记为不稳定,因为偏差太大:以及 ubuntu 服务器 22.04.4 LTS 上的时间漂移

我有一个 Ubuntu 服务器,配置如下

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy
Linux lab01 6.5.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar 12 10:22:43 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

我有一个严重的问题,就是时钟无法自行计时。它漂移很大,一旦它检查 NTP 服务器,它就会更正自己的时间,基本上就是服务器的时间会漂移到未来,一旦在线 NTP 服务器提供新的时间,它就会恢复到原来的时间。

I've notice that there's some issues with the clocksource

lab@lab01:~$ sudo dmesg | grep clocksource
[sudo] password for lab:
[    0.026856] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.100958] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x2c9485be866, max_idle_ns: 440795258057 ns
[    0.106744] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.146577] clocksource: Switched to clocksource tsc-early
[    1.765438] clocksource: timekeeping watchdog on CPU1: Marking clocksource 'tsc-early' as unstable because the skew is too large:
[    1.765440] clocksource:                       'refined-jiffies' wd_nsec: 512032000 wd_now: fffedc08 wd_last: fffedb88 mask: ffffffff
[    1.765442] clocksource:                       'tsc-early' cs_nsec: 852454992 cs_now: 9bda08539 cs_last: 9207bcdc0 mask: ffffffffffffffff
[    1.765443] clocksource:                       Clocksource 'tsc-early' skewed 340422992 ns (340 ms) over watchdog 'refined-jiffies' interval of 512032000 ns (512 ms)
[    1.765445] clocksource:                       'tsc-early' is current clocksource.
[    1.765448] tsc: Marking TSC unstable due to clocksource watchdog
[    1.985248] clocksource: Switched to clocksource refined-jiffies

这可能是与时钟相关的问题吗?我该如何解决

相关内容