From owner-freebsd-questions@FreeBSD.ORG Tue Nov 27 13:00:22 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A6CA16A46B for ; Tue, 27 Nov 2007 13:00:22 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from mesiob.obspm.fr (mesiob.obspm.fr [145.238.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id 26F1C13C459 for ; Tue, 27 Nov 2007 13:00:21 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from localhost (pcjas.obspm.fr [145.238.184.233]) by mesiob.obspm.fr (8.13.4/8.13.4/SIO Observatoire de Paris) with ESMTP id lARD0KdR001215; Tue, 27 Nov 2007 14:00:20 +0100 Date: Tue, 27 Nov 2007 14:00:20 +0100 From: Albert Shih To: Ted Mittelstaedt Message-ID: <20071127130020.GA81551@pcjas.obspm.fr> References: <20071126115022.GA70340@pcjas.obspm.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (mesiob.obspm.fr [145.238.2.2]); Tue, 27 Nov 2007 14:00:20 +0100 (CET) X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on mesiob.obspm.fr X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: Help for very bad perf for MySQL X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Albert.Shih@obspm.fr List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2007 13:00:22 -0000 Le 26/11/2007 à 22:34:34-0800, Ted Mittelstaedt a écrit > > Sorry yeasterday I don't have time to answer you. > > > > I've already send a message. But I don't receive any answer :-(. > > I try again > > and hope there more solution > > > > I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm running Mysql > > 5.X on this server and the performance of MySQL is very bad. For some > > complexe select I've got ~6secondes (on some basic Linux it's take 0.6 > > sec). And I think this is nothing about thead (that's mean I don't think > > FreeBSD 7.0 can solve my problem) because it's just for one select. > > > > The server have two SAS 10 000 tr/m disks. > > > > Anyone have some advise to tunning FreeBSD or MySQL for increase > > the perf ? > > > > Start with the obvious stuff first. How big is the database? How > big is system ram? If you have less ram than you have database then > mysql will have to go to the hard disk for the select which will kill > it's performance. > Well : Database size ~ 180Mo Ram of server = 4 Go 2 processeurs. Nothing run on this server (charge is near zero). The disk I/O is running very fast. The make buildworld is fast too (I don't have measure but it's «fast» ;-)) Regards. -- Albert SHIH Observatoire de Paris Meudon SIO batiment 15 Heure local/Local time: Mar 27 nov 2007 13:58:17 CET