Clocksource tsc unstable
1、查看时钟源无tsc选项
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
acpi_pm
2、dmesg中tsc不稳
dmesg | grep tsc
tsc: Marking TSC unstable due to clocksource watchdog
可能原因是硬件问题如三极管延时超标
3、解决方案
加入启动参数:tsc=reliable pmtmr=0x0
关PMTIMER,强制使能tsc。会使得watchdog不可用。
4、为啥没有HPET?
TSC失败之后,系统理论上会切换为HPET时钟。对于虚拟机,单板时钟为tsc时钟,cpu占用率正常;时钟为hpet时,CPU占用率降低。