Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 10:33:37 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        David Xu <davidxu@freebsd.org>
Cc:        Mark Kirkwood <markir@paradise.net.nz>, current@freebsd.org, "Yuriy N. Shkandybin" <jura@networks.ru>
Subject:   Re: Timers and timing, was: MySQL Performance 6.0rc1
Message-ID:  <20051028083337.GB3596@garage.freebsd.pl>
In-Reply-To: <436171E2.6050206@freebsd.org>
References:  <21137.1130401220@critter.freebsd.dk> <00a801c5dacf$db3b7700$6504010a@Jura> <43613541.7030009@mac.com> <43615BBB.2080702@paradise.net.nz> <4361683E.7040504@freebsd.org> <436171E2.6050206@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--mojUlQ0s9EVzWg2t
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 28, 2005 at 08:33:38AM +0800, David Xu wrote:
+> Run it on IBM thinkpad T43:
+>       null function: 0.00435
+>            getpid(): 0.27038
+>              time(): 4.67393
+>      gettimeofday(): 4.66421
+>=20
+> gettimeofday is horribly slow.
+> The system has Intel 915PM chipsets, Pentium 1.86Ghz,
+> powerd daemon is turned off.

Hmm:) On mine t43:

       null function: 0.00403
            getpid(): 0.30784
              time(): 1.94495
      gettimeofday(): 1.94236

Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 2.00GHz (1995.01-MHz 686-class CPU)

# sysctl kern.timecounter
kern.timecounter.stepwarnings: 0
kern.timecounter.nbinuptime: 728148402
kern.timecounter.nnanouptime: 2
kern.timecounter.nmicrouptime: 2477266
kern.timecounter.nbintime: 597941774
kern.timecounter.nnanotime: 24410690
kern.timecounter.nmicrotime: 573531048
kern.timecounter.ngetbinuptime: 1385823
kern.timecounter.ngetnanouptime: 128529
kern.timecounter.ngetmicrouptime: 104152069
kern.timecounter.ngetbintime: 0
kern.timecounter.ngetnanotime: 18
kern.timecounter.ngetmicrotime: 7198569
kern.timecounter.nsetclock: 4
kern.timecounter.hardware: ACPI-fast
kern.timecounter.choice: TSC(800) ACPI-fast(1000) i8254(0) dummy(-1000000)
kern.timecounter.tick: 1

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--mojUlQ0s9EVzWg2t
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDYeJhForvXbEpPzQRAs7SAKCoAEFIvWnuh5ghhyUR/U0AFprj6gCeMP5r
61GSGnu+xUBE5wljOJjMmmk=
=V9YS
-----END PGP SIGNATURE-----

--mojUlQ0s9EVzWg2t--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051028083337.GB3596>