Re: Pentium II optimization (clc vs testl)

Manfred Spraul (mingo@chiara.csoma.elte.hu)
Fri, 10 Sep 1999 19:36:28 +0200 (CEST)


On Fri, 10 Sep 1999, Manfred Spraul wrote:

> > The BARRIER thing might looks curious, but rdtsc has to be shielded
> > from the measured section, otherwise rdtsc's uops might mix up and
> > interact with the measured section - causing false results.
>
> IIRC, Intel recommends that a "CPUID" instruction should be used:
> it's a guaranteed serializing instruction.

yes, CPUID is serializing, but it interacts with the benchmarked section,
while the cli;lock;cli one i believe doesnt and is still serializing. Of
course this is only to ensure accurate benchmarking.

-- mingo

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