美文网首页Linux Troubleshooting
kernel: clocksource tsc unstable

kernel: clocksource tsc unstable

作者: yangqing | 来源:发表于2023-12-28 15:31 被阅读0次

环境

  • CentOS 6

问题

  • 系统日志中会出现类似以下的消息:
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.

相关文章

网友评论

    本文标题:kernel: clocksource tsc unstable

    本文链接:https://www.haomeiwen.com/subject/fftjndtx.html