Re: Timers and timing, was: MySQL Performance 6.0rc1

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Fri, 28 Oct 2005 10:33:37 +0200
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
+> 
+> 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

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

Received on Fri Oct 28 2005 - 06:33:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:46 UTC