From owner-freebsd-threads@FreeBSD.ORG Sat May 22 09:47:04 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E4A716A4CE for ; Sat, 22 May 2004 09:47:04 -0700 (PDT) Received: from rms04.rommon.net (rms04.rommon.net [212.54.2.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9CEA43D1D for ; Sat, 22 May 2004 09:47:03 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (h91.vuokselantie10.fi [193.64.42.145]) by rms04.rommon.net (8.12.10/8.12.9) with ESMTP id i4MGkX3v021928; Sat, 22 May 2004 19:46:33 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <40AF83E5.3090303@he.iki.fi> Date: Sat, 22 May 2004 19:46:29 +0300 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: JG References: <5.2.0.9.2.20040521154458.01627688@127.0.0.1> <5.2.0.9.2.20040521154458.01627688@127.0.0.1> <5.2.0.9.2.20040522052606.0156fd70@mail.ojoink.com> In-Reply-To: <5.2.0.9.2.20040522052606.0156fd70@mail.ojoink.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: Why is MySQL nearly twice as fast on Linux? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2004 16:47:04 -0000 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