From owner-freebsd-questions@FreeBSD.ORG Fri Jan 27 20:22:04 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33BCF16A420 for ; Fri, 27 Jan 2006 20:22:04 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73F3843D5A for ; Fri, 27 Jan 2006 20:22:03 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 6118C1A3C25; Fri, 27 Jan 2006 12:22:03 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B70E052727; Fri, 27 Jan 2006 15:22:02 -0500 (EST) Date: Fri, 27 Jan 2006 15:22:02 -0500 From: Kris Kennaway To: Romeo Theriault Message-ID: <20060127202202.GA65737@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: mysql - linuxthreads X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 20:22:04 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 27, 2006 at 03:15:05PM -0500, Romeo Theriault wrote: > A week or so ago I wrote to the this list asking about Freebsd and =20 > Mysql, wondering if you still needed to compile Mysql with =20 > linuxthreads to get better performance under Freebsd 6. I didn't get =20 > much of a response so I looked around for the answer. I thought I'd =20 > write back to the mailing list to tell anyone interested what I found. Thanks, this is always useful! > In the Freebsd 6.0 is seems that to get the best MySQL performance =20 > you need to do a few things. > #compile your kernel with the ULE scheduler I'd be inclined to doubt this..all my measurements show ULE is slower than 4BSD except at negligible load. How did you measure it? > #use the TSC timecounter > #use the libthr threading library with mysql You definitely want libthr. Kris --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD2oDqWry0BWjoQKURAmPLAJ9gZ9OkLPTWfjK+4Yybgeqm7bjt3ACgsq03 EBc2U44ZDivnGB4duL9F+co= =fhuW -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--