环境
问题
Dec 29 15:24:18 localhost kernel: Clocksource tsc unstable (delta = 723800ns). Enable clocksource failover by adding clocksource_failover kernel parameter.
Dec 29 15:24:18 localhost kernel: Clocksource tsc unstable (delta = 723800ns). Enable clocksource failover by adding clocksource_failover kernel parameter.
解决
- 将时钟源更改为系统上另一个可用的时钟
- 首先,找到可用的系统时钟源:
$ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
$ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
tsc hpet acpi_pm
$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
tsc
# echo <新时钟源选择> > /sys/devices/system/clocksource/clocksource0/current_clocksource
- 要使此更改在系统重新引导后保持不变,必须将以下内容添加到内核命令行中:
/boot/grub/grub.conf
:
clocksource=<时钟源选择>
诊断步骤
-
grep "Clocksource tsc unstable" /var/log/messages
将返回类似的内容
Dec 29 15:24:18 localhost kernel: Clocksource tsc unstable (delta = 723800ns). Enable clocksource failover by adding clocksource_failover kernel parameter.
Dec 29 15:24:18 localhost kernel: Clocksource tsc unstable (delta = 723800ns). Enable clocksource failover by adding clocksource_failover kernel parameter.
网友评论