Re: 'Detected 19943xxx Hz processor'-fluctuations...

Florian Weimer (fw@cygnus.stuttgart.netsurf.de)
13 Jan 1999 08:32:00 +0100


Robert Woodcock <rcw@debian.org> writes:

> > > Just for kicks I decided to let mhz.estimate run for a while in a
> > > loop, that way I get thousands more quite-possibly-less-accurate
> > > statistics. Out of 59000 runs, here are the most deviant 20:
> >
> > > gettimeofday(&tvstart, &tz);
> > > cycles[0] = rdtsc();
> > > gettimeofday(&tvstart, &tz);
> >
> > Which processor type did you select when you compiled the kernel under
> > which the test was run?
>
> PPro, but that's irrelevant.

Are you sure? AFAIK, gettimeofday() internally uses rdtsc() on those
processors. Aren't you trying to measure the precision of a clock with
the same clock?

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