From owner-freebsd-current@FreeBSD.ORG Wed Feb 9 22:37:48 2005 Return-Path: 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 A837216A4CE for ; Wed, 9 Feb 2005 22:37:48 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4755C43D2D for ; Wed, 9 Feb 2005 22:37:48 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from [192.168.254.12] (g4.samsco.home [192.168.254.12]) (authenticated bits=0) by pooker.samsco.org (8.13.1/8.13.1) with ESMTP id j19MbWvF012086; Wed, 9 Feb 2005 15:37:32 -0700 (MST) (envelope-from scottl@freebsd.org) Message-ID: <420A909C.8070701@freebsd.org> Date: Wed, 09 Feb 2005 15:37:16 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Miguel Mendez References: <20050209205943.34c39e15.flynn@energyhq.es.eu.org> In-Reply-To: <20050209205943.34c39e15.flynn@energyhq.es.eu.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: freebsd-current@freebsd.org Subject: Re: MySQL benchmarks X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 09 Feb 2005 22:37:48 -0000 Miguel Mendez wrote: > Hi all, > > Someone has posted a link to a newsforge article on the NetBSD lists > that benchmarks MySQL performance on several systems, you can see it at: > > http://software.newsforge.com/article.pl?sid=04/12/27/1243207&from=rss > > I don't know how much Linux-specific code there is in MySQL because, > honestly, I always try to avoid it and go with PostgreSQL, but perhaps > somebody with more MySQL-fu can fill in the blanks and confirm that the > better performance seen on Linux systems is due to how the software is > designed and not so much related to FreeBSD per se. > > Cheers, There has long been speculation that Linux cuts corners on these tests by ignoring things like fsync. One thing that I've been meaning to do for a while is to ktrace some of the mysql benchmarks and see what exactly is going on, then compare that to a similar ktrace run under Linux. If it turns out that there are lots of synchronization calls (i.e. fsync-like calls), try stubbing them out in FreeBSD and see if it brings you any closer to the linux scores. An easier but also informative test would be to remount the database filesystem as async-noatime-nosoftupdates and see how it compares.