LTP - gettimeofday02 FAIL

Paul Larson (plars@linuxtestproject.org)
12 Nov 2002 16:11:14 -0600


--=-Rdp/Zx/T+Qk2cY6A8sMP
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I've been getting a somewhat random error in a few of the recent 2.5
kernels with SMP machines. I noticed this on a 2.5.47 bk pull, but I
was also able to reproduce it on 2.5.46. I haven't tried any earlier
kernels yet. The LTP gettimeofday02 test sometimes fails with this
message:
gettimeofday02 0 INFO : checking if gettimeofday is monotonous,
takes 30s
gettimeofday02 1 FAIL : Time is going backwards (old
1037138184.846333 vs new 1037138184.843346!

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 =3D tv2;
}

Any ideas on what could be causing this?

Thanks,
Paul Larson

--=-Rdp/Zx/T+Qk2cY6A8sMP
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEABECAAYFAj3RfIIACgkQbkpggQiFDqfoKACfQuIXZxqa2VbHEoXrMxboHcHM
N3MAn2qie9TzkZ3EUn+8cjNVmOklYT7D
=8CoB
-----END PGP SIGNATURE-----

--=-Rdp/Zx/T+Qk2cY6A8sMP--

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