Date: Tue, 3 Jun 2003 14:10:14 -0700 (PDT) From: gson@nominum.com (Andreas Gustafsson) To: freebsd-bugs@FreeBSD.org Subject: Re: misc/34596: slow gettimeofday in FreeBSD 4.5 Message-ID: <200306032110.h53LAEtA068006@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/34596; it has been noted by GNATS. From: gson@nominum.com (Andreas Gustafsson) To: freebsd-gnats-submit@FreeBSD.org, jason@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@nominum.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306032110.h53LAEtA068006>