Re: constant_tsc and TSC unstable

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H. Peter Anvin <hpa@...>
Cc: "Paul Rolland (ポール・ロラン)" <rol@...>, Linux Kernel <linux-kernel@...>
Date: Thursday, November 29, 2007 - 5:26 pm

H. Peter Anvin wrote:
[]
[]


A bug in where - in the CPU or in kernel?

The thing is that all our dual-core machines shows something like
that.

For example, dualcore PentiumD machine:
Nov  7 20:23:56 paltus kernel: Linux version 2.6.22-i686smp (mjt@paltus.tls.msk.ru) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #2.6.22.12 SMP Wed Nov 7 20:02:14 MSK 2007
...
Nov  7 20:23:56 paltus kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
Nov  7 20:23:56 paltus kernel: Measured 112 cycles TSC warp between CPUs, turning off TSC clock.
Nov  7 20:23:56 paltus kernel: Marking TSC unstable due to: check_tsc_sync_source failed.
Nov  7 20:23:56 paltus kernel: Brought up 2 CPUs

(not that huge difference as Paul reported, but still "unstable".
The same happens with 2.6.23)

Note that once TSC is disabled (it's using "jiffies" as far
as I can see), ntpd constantly speeds up and slows down the
clock, it jumps +/- 0.5sec every several minutes or hours -
I guess that's when ntpd process gets moved from one core
to another for whatever reason.  And an interesting thing
is that with 64bits kernel this TSC problem does not occur
on this very machine.

Something similar is reported on AMD X2 64 machines as well --
can't check right now.

Thanks.

/mjt
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
constant_tsc and TSC unstable, Paul Rolland, (Thu Nov 29, 12:11 pm)
Re: constant_tsc and TSC unstable, Frans Pop, (Thu Nov 29, 8:30 pm)
RE: constant_tsc and TSC unstable, Pallipadi, Venkatesh, (Thu Nov 29, 7:29 pm)
Re: constant_tsc and TSC unstable, Paul Rolland (, (Fri Nov 30, 2:52 am)
RE: constant_tsc and TSC unstable, Pallipadi, Venkatesh, (Wed Dec 5, 8:35 pm)
Re: constant_tsc and TSC unstable, H. Peter Anvin, (Thu Nov 29, 3:04 pm)
Re: constant_tsc and TSC unstable, Patrick McHardy, (Thu Nov 29, 5:36 pm)
Re: constant_tsc and TSC unstable, Michael Tokarev, (Thu Nov 29, 5:26 pm)
Re: constant_tsc and TSC unstable, Paul Rolland, (Fri Nov 30, 2:59 am)
Re: constant_tsc and TSC unstable, H. Peter Anvin, (Fri Nov 30, 3:04 am)