lkml.org 
[lkml]   [1999]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 'Detected 19943xxx Hz processor'-fluctuations...
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog