From owner-freebsd-current@FreeBSD.ORG Fri Oct 28 01:03:42 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 2109616A41F for ; Fri, 28 Oct 2005 01:03:42 +0000 (GMT) (envelope-from markir@paradise.net.nz) Received: from linda-2.paradise.net.nz (bm-2a.paradise.net.nz [203.96.152.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id A95AB43D46 for ; Fri, 28 Oct 2005 01:03:41 +0000 (GMT) (envelope-from markir@paradise.net.nz) Received: from smtp-2.paradise.net.nz (tclsnelbe2-src-nat-1 [203.96.152.177]) by linda-2.paradise.net.nz (Paradise.net.nz) with ESMTP id <0IP100LT5PM4FR@linda-2.paradise.net.nz> for current@freebsd.org; Fri, 28 Oct 2005 14:03:40 +1300 (NZDT) Received: from [192.168.1.11] (218-101-13-50.paradise.net.nz [218.101.13.50]) by smtp-2.paradise.net.nz (Postfix) with ESMTP id 9E56BC7C336; Fri, 28 Oct 2005 14:03:40 +1300 (NZDT) Date: Fri, 28 Oct 2005 14:03:38 +1300 From: Mark Kirkwood In-reply-to: <43616A73.7030709@mac.com> To: Chuck Swiger Message-id: <436178EA.5020603@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050726) References: <21137.1130401220@critter.freebsd.dk> <00a801c5dacf$db3b7700$6504010a@Jura> <43613541.7030009@mac.com> <43615BBB.2080702@paradise.net.nz> <43616A73.7030709@mac.com> 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 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 01:03:42 -0000 Chuck Swiger wrote: > Mark Kirkwood wrote: > >> Chuck Swiger wrote: >> >>> FreeBSD 5.4-STABLE i386 >>> null function: 0.01278 >>> getpid(): 0.51329 >>> time(): 2.54771 >>> gettimeofday(): 2.54982 >>> >> >> 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 :-(. > > > Interesting. The 5.4 box was a Dell PowerEdge 2550 with a 933 Mhz P3, I > think IIRC :-), running a kernel & world that's about two months old. > >> [Running a pretty much stock kernel, except for: >> >> #cpu I486_CPU >> #cpu I586_CPU >> >> and timer.c is compiled w/o any optimization.] > > > That's about what my kernel looks like, and I compiled using nothing but > "cc -o timer timer.c" as well. > To add to the confusion :-), here are results from a dual PIII 1G (Tyan S2510) running 6.0-RC1 (minus all debugging and malloc checking): null function: 0.01143 getpid(): 0.51563 time(): 5.27039 gettimeofday(): 5.24489 Interesting - kinda like the 5.4-STABLE results (but 2x slower for time....). Again a pretty stock kernel ('options SMP' added obviously). regards Mark