Re: gettimeofday non-monotonic on SMP 2.3.47

From: Boris Okun (bokun@home.com)
Date: Fri Mar 03 2000 - 23:09:03 EST


Andrea Arcangeli wrote:
>
> On Fri, 3 Mar 2000, Boris Okun wrote:
>
> >I sometiems get a couple of backs if I put i=1000000
>
> that's normal. tsc goes ahead even while the irq got lost, then when the
> irq happens the tsc diff restart from zero but the xtime lost one tick.

Does this mean that my solution is correct, or you still think that I
just messed things up and thus masked the problem?

BTW, the following is from fftw site:

The configure option --enable-pentium-timer enables the use of the
Pentium and
PentiumPro cycle counter for timing purposes. In order to get correct
results, you must define FFTW_CYCLES_PER_SEC in fftw/config.h to be the
clock speed of your processor; the resulting FFTW library will be
nonportable. The use of this option is deprecated. On serious operating
systems (such as Linux), FFTW
      ^^^^^^^^^^^^^^^^^^
uses gettimeofday(), which has enough resolution and is portable.
 
Boris

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



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:16 EST