From owner-freebsd-performance@FreeBSD.ORG Thu Jun 30 14:58:50 2005 Return-Path: X-Original-To: performance@freebsd.org Delivered-To: freebsd-performance@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86B1516A41C for ; Thu, 30 Jun 2005 14:58:50 +0000 (GMT) (envelope-from nevans@talkpoint.com) Received: from relay.talkpoint.com (pobox.talkpoint.com [204.141.15.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AF9143D48 for ; Thu, 30 Jun 2005 14:58:47 +0000 (GMT) (envelope-from nevans@talkpoint.com) Received: from ASSP-nospam ([127.0.0.1]) by relay.talkpoint.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 30 Jun 2005 10:58:46 -0400 Received: from 204.141.15.194 ([204.141.15.194] helo=pleiades.nextvenue.com) by ASSP-nospam ; 30 Jun 05 14:58:46 -0000 Date: Thu, 30 Jun 2005 10:58:46 -0400 From: Nick Evans To: Nick Evans Message-ID: <20050630105846.380aa7ba@pleiades.nextvenue.com> In-Reply-To: <20050629170044.0ea27b23@pleiades.nextvenue.com> References: <20050623145041.GC64879@bibipentium.lonres.com> <42BD64F1.4080001@roq.com> <20050627134146.GA626@bibipentium.lonres.com> <42C1FA31.3050806@roq.com> <20050629094533.GA49933@obiwan.tataz.chchile.org> <20050629170044.0ea27b23@pleiades.nextvenue.com> X-Mailer: Sylpheed-Claws 1.9.11 (GTK+ 2.6.7; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Jun 2005 14:58:47.0085 (UTC) FILETIME=[3789A5D0:01C57D84] Cc: performance@freebsd.org Subject: Re: FreeBSD MySQL still WAY slower than Linux X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2005 14:58:50 -0000 Update: Switched threading libraries from libpthread to libthr and now I'm getting 27,500 selects/sec at 45% idle. This is with version 4.1.12 of mysql using myISAM tables compiled with the following options WITHOUT_INNODB BUILD_OPTIMIZED relevant parts of my.cnf: # The MySQL server [mysqld] port = 3306 socket = /tmp/mysql.sock skip-locking key_buffer = 384M max_allowed_packet = 1M table_cache = 512 sort_buffer_size = 16M read_buffer_size = 16M read_rnd_buffer_size = 16M myisam_sort_buffer_size = 96M thread_cache = 8 query_cache_size = 64M # Try number of CPU's*2 for thread_concurrency thread_concurrency = 8 # max conns max_connections=8000 On Wed, 29 Jun 2005 17:00:44 -0400 Nick Evans wrote: > I just tried this on my dual opteron test rig and didn't notice a difference > in performance with noatime set. What did make a difference was moving from > fxp to bge network cards. bge supports checksum offloading where fxp only > supports interrupt bundling. Freed up another 20% idle during my test runs. > I'm now hitting ~23,000 selects/sec, ~42% idle when running select-key.smack > from 3 client hosts. If we establish a suitable test mix and distribute the > smack/data files at least we can get consistent test results across systems. > > Nick > > 6-CURRENT as of Jun 27th > Dual Opteron 246 > Tyan K8SD Thunder Pro > 4GB RAM > my-huge.cnf with tweaks. > > > On Wed, 29 Jun 2005 11:45:33 +0200 > Jeremie Le Hen wrote: > > > Hi Michael, hi Steve, > > > > > For me this is as fast as I need my database to be but I can understand > > > there is a difference here between FreeBSD and Linux that would make > > > you prefer it as the db OS choice. > > > > Could you try mounting the filesystem where the database lives with > > the noatime option, and re-run your tests ? IIRC from previous threads > > on this subject, Linux doesn't really honor this while FreeBSD does, > > which pulls down the performances. > > > > Regards, > > -- > > Jeremie Le Hen > > < jeremie at le-hen dot org >< ttz at chchile dot org > > > _______________________________________________ > > freebsd-performance@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > > To unsubscribe, send any mail to "freebsd-performance- > > unsubscribe@freebsd.org" > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to "freebsd-performance- > unsubscribe@freebsd.org"