Re: CPU speed without rdtsc
- From: Terje Mathisen <spamtrap@xxxxxxxxxx>
- Date: Fri, 17 Nov 2006 08:01:49 +0100
Tim Roberts wrote:
Spoon <spamtrap@xxxxxxxxxx> wrote:
Tim Roberts wrote:
...with a multiprocessor HAL, QueryPerformanceCounter returns RDTSCHow do they fix the clock skew?
directly, so it has all of the same pitfalls. I hope Microsoft solves this
problem correctly; the early versions of NT synced the cycle counters at
boot time. Today, they can be millions of cycles apart, although the delta
is constant after power up.
The cycle counter is one of the "machine-specific registers", and can be
written using the WRMSR instruction.
This has been known since 1994 when I reverse engineered both the EMON counters and the way the TSC is simply a read-only mirror of one of those counters. See BYTE July 1994:
http://www.byte.com/art/9407/sec12/art3.htm
Terje
--
- <Terje.Mathisen@xxxxxxxxxxxxx>
"almost all programming can be viewed as an exercise in caching"
.
- References:
- CPU speed without rdtsc
- From: Wojtek
- Re: CPU speed without rdtsc
- From: rhyde@xxxxxxxxxx
- Re: CPU speed without rdtsc
- From: Tim Roberts
- Re: CPU speed without rdtsc
- From: Spoon
- Re: CPU speed without rdtsc
- From: Tim Roberts
- CPU speed without rdtsc
- Prev by Date: JMP table in debug but not release?
- Next by Date: Re: efficient image filtering?
- Previous by thread: Re: CPU speed without rdtsc
- Next by thread: Cpu speed without rdtsc
- Index(es):
Relevant Pages
|
|