From owner-freebsd-current@FreeBSD.ORG Fri Oct 28 20:00:09 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 C27BC16A41F for ; Fri, 28 Oct 2005 20:00:09 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 525A643D46 for ; Fri, 28 Oct 2005 20:00:09 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id j9SK08xC060080; Fri, 28 Oct 2005 13:00:08 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id j9SK08VT060079; Fri, 28 Oct 2005 13:00:08 -0700 (PDT) (envelope-from jmg) Date: Fri, 28 Oct 2005 13:00:07 -0700 From: John-Mark Gurney To: Poul-Henning Kamp Message-ID: <20051028200007.GP4115@funkthat.com> Mail-Followup-To: Poul-Henning Kamp , current@freebsd.org References: <4361F057.4030904@pp.nic.fi> <30622.1130493370@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30622.1130493370@critter.freebsd.dk> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: current@freebsd.org Subject: Re: Timers and timing, was: MySQL Performance 6.0rc1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney 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 20:00:09 -0000 Poul-Henning Kamp wrote this message on Fri, Oct 28, 2005 at 11:56 +0200: > In message <4361F057.4030904@pp.nic.fi>, Pertti Kosunen writes: > > >Does polling affect to this test? > > Not apart from the CPU overhead. > > sysctl kern.timecounter.hardware > > is much more important. > > and all the reports here which fail to include it are mostly > useless. hydrogen,ttypa,/tmp,504$grep CPU /var/run/dmesg.boot CPU: AMD Duron(tm) Processor (1211.94-MHz 686-class CPU) hydrogen,ttypa,/tmp,501#sysctl kern.timecounter.hardware=TSC kern.timecounter.hardware: TSC -> TSC hydrogen,ttypa,/tmp,502#./timer null function: 0.00165 getpid(): 0.37850 time(): 0.65022 gettimeofday(): 0.60886 hydrogen,ttypa,/tmp,503#sysctl kern.timecounter.hardware=ACPI-fast kern.timecounter.hardware: TSC -> ACPI-fast hydrogen,ttypa,/tmp,504#./timer null function: 0.00165 getpid(): 0.38530 time(): 1.33242 gettimeofday(): 1.33421 I was quite impressed by the speed up using the TSC over ACPI-fast... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."