From owner-freebsd-current@FreeBSD.ORG Fri Oct 28 08:33:57 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 832D016A41F; Fri, 28 Oct 2005 08:33:57 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id B006443D46; Fri, 28 Oct 2005 08:33:56 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 6013B50F93; Fri, 28 Oct 2005 10:33:54 +0200 (CEST) Received: from localhost (dlh33.neoplus.adsl.tpnet.pl [83.24.37.33]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id EC00050F94; Fri, 28 Oct 2005 10:33:44 +0200 (CEST) Date: Fri, 28 Oct 2005 10:33:37 +0200 From: Pawel Jakub Dawidek To: David Xu Message-ID: <20051028083337.GB3596@garage.freebsd.pl> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mojUlQ0s9EVzWg2t" Content-Disposition: inline In-Reply-To: <436171E2.6050206@freebsd.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Mark Kirkwood , current@freebsd.org, "Yuriy N. Shkandybin" Subject: Re: Timers and timing, was: MySQL Performance 6.0rc1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 08:33:57 -0000 --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--