From owner-freebsd-questions@FreeBSD.ORG Fri Mar 20 21:15:49 2009 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 C32311065674 for ; Fri, 20 Mar 2009 21:15:49 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 8C5628FC08 for ; Fri, 20 Mar 2009 21:15:49 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from smoochies.rachie.is-a-geek.net (smoochies.rachie.is-a-geek.net [192.168.1.50]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id B551AAFBDB4; Fri, 20 Mar 2009 13:15:48 -0800 (AKDT) Received: by smoochies.rachie.is-a-geek.net (Postfix, from userid 1003) id 5772B8442B; Fri, 20 Mar 2009 11:57:01 -0800 (AKDT) From: Mel Flynn To: Matt Juszczak Date: Fri, 20 Mar 2009 11:57:00 -0800 User-Agent: KMail/1.11.0 (FreeBSD/8.0-CURRENT; KDE/4.2.0; i386; ; ) References: <200903201015.00654.mel.flynn+fbsd.questions@mailing.thruhere.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903201157.01180.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: freebsd-questions@freebsd.org Subject: Re: MySQL 5.0 on FreeBSD 7 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, 20 Mar 2009 21:15:50 -0000 On Friday 20 March 2009 10:46:20 Matt Juszczak wrote: > > You're confusing linux-threads with pthreads. The performance boosts > > mentioned are done using the FreeBSD Posix threads ("pthreads") library, > > in FreeBSD 7.x they are implemented using libthr(3). > > The benchmarks also assume you are using SCHED_ULE, rather then > > SCHED_4BSD. Nothing should be configured if you run GENERIC later then > > 7.0-RELEASE. > > Mel, > > So, from a standard FreeBSD 7.x install: > > - Recompile kernel to use SCHED_ULE 7.1 and 7-STABLE later then feb 2008 all have SCHED_ULE as default. Only 7.0-RELEASE has SCHED_4BSD as default. > - In the port, use: BUILD_OPTIMIZED=yes > - In the port, use: WITH_PROC_SCOPE_PTH=yes > - In the port, use: BUILD_STATIC=yes Yes. If you don't mind loosing the ability to kill off sleeping connections, you can add WITHOUT_THR_ALARM. > And that should be it? So the "libpthread" they discuss in the > description for WITH_PROC_SCOPE_PTH is different than the linux pthreads? Yes. Linux threads is a port of the linux threading library (devel/linuxthreads). -- Mel