异常log分析总结 :tsc: Marking TSC unstable due to checktscsync_source failed
/var/log/messages:
......
Nov 16 22:21:14 localhost kernel: x86/cpu: Activated the Intel User Mode Instruction Prevention (UMIP) CPU feature
Nov 16 22:21:14 localhost kernel: #8 #9 #10 #11 #12 #13 #14 #15 #16 #17 #18 #19 #20 #21 #22 #23 #24 #25 #26 #27 #28 #29 #30 #31 #32 #33 #34 #35 #36 #37 #38 #39 #40 #41 #42 #43 #44 #45 #46 #47 OK
Nov 16 22:21:14 localhost kernel: x86/cpu: Activated the Intel User Mode Instruction Prevention (UMIP) CPU feature
Nov 16 22:21:14 localhost kernel: smpboot: Booting Node 1, Processors #48
Nov 16 22:21:14 localhost kernel: TSC synchronization [CPU#0 -> CPU#48]:
Nov 16 22:21:14 localhost kernel: Measured 520 cycles TSC warp between CPUs, turning off TSC clock.
Nov 16 22:21:14 localhost kernel: tsc: Marking TSC unstable due to check_tsc_sync_source failed
Nov 16 22:21:14 localhost kernel: x86/cpu: Activated the Intel User Mode Instruction Prevention (UMIP) CPU feature
Nov 16 22:21:14 localhost kernel: ------------[ cut here ]------------
Nov 16 22:21:14 localhost kernel: WARNING: CPU: 49 PID: 0 at arch/x86/kernel/cpu/mcheck/mce.c:1486 mcheck_cpu_init+0x9e/0x490
Nov 16 22:21:14 localhost kernel: #49
Nov 16 22:21:14 localhost kernel: Modules linked in:
Nov 16 22:21:14 localhost kernel:
Nov 16 22:21:14 localhost kernel: CPU: 49 PID: 0 Comm: swapper/49 Tainted: G W ------------ 3.10.0-957.el7.x86_64 #1
......
TSCs are kind of notorious for going out of sync between CPUs. This is just saying the kernel isn't going to use the TSC. Later in the boot, it switches the clocksource to hpet, so things should be fine. There's really nothing to fix here.
First it isn't really an issue as the kernel is only letting you know that the Its first try to set TSC failed. It just resorts to another method. The message Is harmless and trivial about what level to print it at. Adding "clocksource=apcipm" near the beginning of "GRUBCMDLINELINUXDEFAULT=" just tells it directly to use an acpi based motherboards power management timer. if "clocksource=acpi_pm" fails for some reason try "clocksource=hpet"...(may work) or check here to see if there are other options:
cat /sys/devices/system/clocksource/clocksource0/available_clocksouce
[root@localhost ~]# cat /sys/devices/system/clocksource/clocksource0/available_clocksource
tsc hpet acpi_pm
[root@localhost ~]#
The Time Stamp Counter was once an excellent high-resolution, low-overhead way for a program to get CPU timing information. With the advent of multi-core/hyper-threaded CPUs, systems with multiple CPUs, and hibernating operating systems, the TSC cannot be relied upon to provide accurate results — unless great care is taken to correct the possible flaws: rate of tick and whether all cores (processors) have identical values in their time-keeping registers. There is no promise that the timestamp counters of multiple CPUs on a single motherboard will be synchronized. Therefore, a program can get reliable results only by limiting itself to run on one specific CPU. Even then, the CPU speed may change because of power-saving measures taken by the OS or BIOS, or the system may be hibernated and later resumed, resetting the TSC. In those latter cases, to stay relevant, the program must re-calibrate the counter periodically.
The High Precision Event Timer (HPET) is a hardware timer used in personal computers. It was developed jointly by Intel and Microsoft and has been incorporated in PC chipsets since circa 2005. Formerly referred to by Intel as a Multimedia Timer,the term HPET was selected to avoid confusion with the software multimedia timers introduced in the MultiMedia Extensions to Windows 3.0.
The ACPI Power Management Timer (ACPI PMT) is yet another clock device included in almost all ACPI-based motherboards. Its clock signal has a fixed frequency of roughly 3.58 MHz. The device is actually a simple counter increased at each clock tick
Bug 885524 - "tsc: Marking TSC unstable due to checktscsyncsource failed" [https://bugzilla.redhat.com/showbug.cgi?id=885524]
fast tsc calibration failed after upgrade to linux 3.6[https://bbs.archlinux.org/viewtopic.php?pid=1210044]
Time Stamp Counter[https://en.wikipedia.org/wiki/TimeStampCounter]
High Precision Event Timer[https://en.wikipedia.org/wiki/HighPrecisionEvent_Timer]
What is the acpi_pm linux clocksource used for, what hardware implements it?[http://stackoverflow.com/questions/7987671/what-is-the-acpi-pm-linux-clocksource-used-for-what-hardware-implements-it]
本文分享自 WriteSimpleDemo 微信公众号,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体同步曝光计划 ,欢迎热爱写作的你一起参与!
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有