Re: LTP - gettimeofday02 FAIL

Chris Wedgwood (cw@f00f.org)
Thu, 14 Nov 2002 13:52:09 -0800


On Tue, Nov 12, 2002 at 04:11:14PM -0600, Paul Larson wrote:

I have not been able to reproduce this on a single processor machine
though.

Basically, all the test does is:
gettimeofday(&tv1, NULL);
while(!done) {
gettimeofday(&tv2, NULL);
FAIL if tv2 < tv1
tv1 = tv2;
}

Any ideas on what could be causing this?

The TSC's aren't synchronized between CPUs.

This is becoming more and more of a problem and in-escapable on some
hardware so I'm starting to wonder if assuming the TSCs are even
roughly synchronized *anywhere* is a good idea.

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