LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-14-2016, 11:10 AM   #1
GreyBeard
Member
 
Registered: Oct 2003
Location: Taxachusetts, USA
Distribution: Slackware
Posts: 45

Rep: Reputation: 1
tsc: Marking TSC unstable due to check_tsc_sync_source failed


Hi,

I just noticed a boot-time error message which I have not noticed before, so I went looking to find out what it was. I run Slackware 14.2, but I think this is not a Slackware issue. Here is the message from /var/log/messages:

kernel: [ 0.050000] tsc: Marking TSC unstable due to check_tsc_sync_source failed

I had no idea what TSC is but I found one message which implied that it had something to do with system clocking or timing, so I narrowed my search. Found the answer in Wikipedia at https://en.wikipedia.org/wiki/Time_Stamp_Counter#Use which explains quite plainly why the TSC is marked as unstable:

--------------------------------------------------------
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.
--------------------------------------------------------

Since I have a 4 processor CPU chip in my machine it is quite clear that the TSC should be marked as unstable. This message is not an error but a feature.
 
Old 07-16-2016, 01:12 PM   #2
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
Was there a question in here? Yeah, it's a common message (and not specific to Slack).

Quote:
Since I have a 4 processor CPU chip in my machine it is quite clear that the TSC should be marked as unstable.
Hmm. I have a 3 core (Phenom II X3 720) chip and it switches to tsc early in boot process after initally selectin hpet. IIRC, I once played with forcing clocksource=hpet to see if it made any sort of perceivable difference. It didn't.

Code:
$ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
tsc hpet acpi_pm 
$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource 
tsc

$ dmesg | grep -i clocksource
[    0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370452778343963 ns
[    0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.365982] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    0.439907] clocksource: Switched to clocksource hpet
[    0.447372] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    2.769844] tsc: Refined TSC clocksource calibration: 2800.107 MHz
[    2.769848] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x285ca5e6db0, max_idle_ns: 440795312341 ns
[    3.769861] clocksource: Switched to clocksource tsc
 
  


Reply

Tags
boot, error, kernel



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fast tsc calibration failed? Enindu Linux - Newbie 5 07-21-2015 12:07 AM
How to set TSC as a clocksource begroup Linux - Newbie 2 01-24-2011 08:43 AM
Clocksource tsc unstable(delta = -75444992 ns) haribabu1836 Linux - Software 1 04-06-2010 09:22 AM
Clocksource tsc unstable sampoo55 Linux - General 1 07-25-2009 09:46 AM
Clocksource tsc unstable punt Fedora 11 12-29-2008 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration