From owner-freebsd-current@FreeBSD.ORG Fri Oct 28 09:33:11 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 BA6D116A41F for ; Fri, 28 Oct 2005 09:33:11 +0000 (GMT) (envelope-from pertti.kosunen@pp.nic.fi) Received: from pne-smtpout2-sn1.fre.skanova.net (pne-smtpout2-sn1.fre.skanova.net [81.228.11.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55DA643D45 for ; Fri, 28 Oct 2005 09:33:10 +0000 (GMT) (envelope-from pertti.kosunen@pp.nic.fi) Received: from [192.168.0.20] (84.249.3.49) by pne-smtpout2-sn1.fre.skanova.net (7.2.060.1) id 435CC8B20016AAA2; Fri, 28 Oct 2005 11:33:10 +0200 Message-ID: <4361F057.4030904@pp.nic.fi> Date: Fri, 28 Oct 2005 12:33:11 +0300 From: Pertti Kosunen User-Agent: Mozilla Thunderbird 1.0.2 / FreeBSD 6.0-BETA5 X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org References: <21137.1130401220@critter.freebsd.dk> <00a801c5dacf$db3b7700$6504010a@Jura> <43613541.7030009@mac.com> <43615BBB.2080702@paradise.net.nz> In-Reply-To: <43615BBB.2080702@paradise.net.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "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 09:33:11 -0000 Mark Kirkwood wrote: > Chuck - very interesting results. I happen to have a PIII 1Ghz running > 5.4-RELEASE so thought it would be interesting to reproduce your > numbers. My null and getpid pretty much do, but the time functions seem > much quicker on my machine - some sort of regression in 5.4-STABLE maybe? > > null function: 0.01578 > getpid(): 0.49136 > time(): 0.83031 > gettimeofday(): 0.78838 > > However, we are still slower than Linux :-(. > > [Running a pretty much stock kernel, except for: > > #cpu I486_CPU > #cpu I586_CPU > > and timer.c is compiled w/o any optimization.] Does polling affect to this test? I get: null function: 0.01060 getpid(): 0.41378 time(): 0.66705 gettimeofday(): 0.64459 FreeBSD 6.0-BETA5 #1: Sun Oct 9 13:09:23 EEST 2005 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(TM)Processor (1009.95-MHz 686-class CPU) # Enable Polling options DEVICE_POLLING # Timecounter "i8254" options HZ=2299