Timers and timing, was: MySQL Performance 6.0rc1

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Oct 28 13:37:34 PDT 2005


In message <20051028201857.GQ4115 at funkthat.com>, John-Mark Gurney writes:
>Michael VInce wrote this message on Fri, Oct 28, 2005 at 22:33 +1000:
>> Hey guys, I been watching this thread and I can confirm that MySQL and 
>> the Super-smack benchmark greatly rely on this,
>> I was able to increase performance %600 by changing 
>> kern.timecounter.hardware to dummy.
>
>This is probably because dummy doesn't actually do any real
>timecounting... and that the times that the benchmark took was longer
>then reported by the machine..  dummy just increments a counter, and
>means that the times returned only have a relation to how often/much
>the time "hardware" was queried...

The dummy timecounter is there only to make the kernel survive during
early boot and to push timecounters further down the list of things
one have to deal with when porting FreeBSD to a new achitecture.

But if you _truly_ don't care about time, it's undisputed the fastest
timecounter "hardware" we have :-)

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list