Re: Semaphore assembly-code bug
From: Chris Friesen
Date: Tue Nov 02 2004 - 01:41:48 EST
Linus Torvalds wrote:
On Intel, if I recall correctly, rdtsc is totally serializing, so you're
testing not just the instructions between the rdtsc's, but the length of
the pipeline, and the time it takes for stuff around it to calm down.
Actually, the Intel docs say that rdtsc is not serializing (specifically for the
P6 series, but linked off the P4 section of the site) and their sample
performance measuring code for the P4 shows it using a serializing instruction
before the call to rdtsc.
Chris
-
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/