misc/34596: slow gettimeofday in FreeBSD 4.5
Andreas Gustafsson
gson at nominum.com
Tue Jun 3 14:10:16 PDT 2003
The following reply was made to PR misc/34596; it has been noted by GNATS.
From: gson at nominum.com (Andreas Gustafsson)
To: freebsd-gnats-submit at FreeBSD.org, jason at carrollgroup.org
Cc:
Subject: Re: misc/34596: slow gettimeofday in FreeBSD 4.5
Date: Tue, 3 Jun 2003 14:01:36 -0700 (PDT)
gettimeofday() is still really slow in FreeBSD 4.8-STABLE. Some
numbers from the test program submitted with misc/34596:
FreeBSD 4.8, single Intel Xeon 2.8 GHz delta: 5s 59701us
NetBSD 1.6L, dual AMD Athlon MP 1800+ delta: 2s 801360us
NetBSD 1.6T, single Transmeta Crusoe 600 MHz delta: 2s 582755us
Linux 2.4.9-31smp, dual AMD Athlon MP 1900+ delta: 0s 247116us
That's more than 5 microseconds on a 2.8 GHz processor, or more than
14000 clock cycles per call.
Other info:
$ grep -i time /var/run/dmesg.boot
Timecounter "i8254" frequency 1193182 Hz
$ sysctl kern.timecounter
kern.timecounter.method: 0
kern.timecounter.hardware: i8254
--
Andreas Gustafsson, gson at nominum.com
More information about the freebsd-bugs
mailing list