Re: gettimeofday() system call timing curiosity

From: pjd@fred001.dynip.com
Date: Fri Mar 08 2002 - 22:03:02 EST


re: repeated gettimeofday() calls...

Alan Cox wrote:
>
> On a 1.8GHz athlon the "same" case occurs almost all the time. Machines
> without a TSC will probably never hit it due to the slow ISA transactions
> to talk to the PIT

Curiously, on a 1.7GHz P4 running RH7.1 (2.4.2 i686) it never hits
the same case, and takes slightly over a second to call gettimeofday a
million times. On my 600MHz Celeron at home (66MHz FSB, i810) running
2.4.17 with a similar .config (I started with the RH7.1 config out of
the source RPM) it takes .8 sec for a million calls and successive calls
return the same value about 20% of the time.

Peter Desnoyers
-
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 Mar 15 2002 - 22:00:11 EST