Re: LTP - gettimeofday02 FAIL

From: Chris Wedgwood (cw@f00f.org)
Date: Thu Nov 14 2002 - 16:52:09 EST


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/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:34 EST