Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 14:03:38 +1300
From:      Mark Kirkwood <markir@paradise.net.nz>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        current@freebsd.org
Subject:   Re: Timers and timing, was: MySQL Performance 6.0rc1
Message-ID:  <436178EA.5020603@paradise.net.nz>
In-Reply-To: <43616A73.7030709@mac.com>
References:  <21137.1130401220@critter.freebsd.dk> <00a801c5dacf$db3b7700$6504010a@Jura> <43613541.7030009@mac.com> <43615BBB.2080702@paradise.net.nz> <43616A73.7030709@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?436178EA.5020603>