Re: [RFT] Please test rdtsc on various x86-64 hardware (app included)

From: Jan Ceuleers
Date: Fri Apr 22 2011 - 10:37:52 EST


On 18/04/11 21:32, Andrew Lutomirski wrote:
Hi all-

I'd appreciate some help testing rdtsc's ordering wrt memory on
various hardware.

$ ./evil-clock-test
CPU vendor : GenuineIntel
CPU model : Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz
CPU stepping : 2
TSC flags : tsc rdtscp constant_tsc nonstop_tsc
Using lfence_rdtsc because you have an Intel CPU
Will test the "lfence;rdtsc" clock.
Now test passed : margin 96 with 64336568 samples
Load3 test passed: margin 72 with 7731224 samples
Load test passed : margin 88 with 13575597 samples
Store test failed as expected: worst error 892 with 9605781 samples

Jan
--
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/