Re: [discuss] Re: [PATCH] x86-64: Fix bad assumption that dualcorecpus have synced TSCs

From: Jonas Oreland
Date: Thu Sep 22 2005 - 02:59:39 EST


Ray Bryant wrote:
> On Wednesday 21 September 2005 10:04, Andi Kleen wrote:
>
>
>>We handle this, but single socket dual core was special cased because
>>I was told previously it should be ok.
>>
>>-Andi
>
>
> AFAIK there is a processor state bit that enables/disables this behavior.
> Apparently some BIOS's are setting this one way for desktop systems and the
> other way for servers. If it is thought to be important I can track that
> down and see if it can be externally documented. (It may actually be in the
> bios and kernel developer guide...)
>

Hi,

This would be very good (for us single socket dual core users)
I tried a very small benchmark:

clock_gettime(CLOCK_REALTIME): elapsed 7336657 -> 733.665700ns/call
clock_gettime(CLOCK_PROCESS_CPUTIME_ID): elapsed 763247 -> 76.324700ns/call

It's a factor 10 faster if the TSC were to be in sync.

/Jonas
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/