Why is MySQL nearly twice as fast on Linux?

Petri Helenius pete at he.iki.fi
Sat May 22 09:47:04 PDT 2004


JG wrote:

>
>
> I haven't personally tested with libthr, but others have and their 
> results were poor as well.
>
> I wanted to avoid reposting pages of benchmarks, but I guess it's not 
> going to happen.
>
It would be interesting if mysql is cpu-bound or disk bound in your 
tests and if disk-bound, the relevant lines from dmesg would be 
appreciated.
FreeBSD (if I remember correctly) does not do elevator on disks by 
default while most if not all linuxen do. That makes quite a difference 
on disk-bound loads.
There are other things, like flush policy which behave differently by 
default, since linux mounts filesystems asynchronously by default.
So if you want a fair comparison, all relevant parameters should be set 
to same, if they are not by default.

Pete



More information about the freebsd-threads mailing list