From owner-freebsd-questions@FreeBSD.ORG Fri Mar 20 18:46:21 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 A93851065678 for ; Fri, 20 Mar 2009 18:46:21 +0000 (UTC) (envelope-from matt@atopia.net) Received: from pluto.atopia.net (pluto.atopia.net [67.222.134.90]) by mx1.freebsd.org (Postfix) with ESMTP id 8AC918FC0A for ; Fri, 20 Mar 2009 18:46:21 +0000 (UTC) (envelope-from matt@atopia.net) Received: by pluto.atopia.net (Postfix, from userid 1003) id A2DB8228AD; Fri, 20 Mar 2009 14:46:20 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by pluto.atopia.net (Postfix) with ESMTP id A1E8022861; Fri, 20 Mar 2009 14:46:20 -0400 (EDT) Date: Fri, 20 Mar 2009 14:46:20 -0400 (EDT) From: Matt Juszczak To: Mel Flynn In-Reply-To: <200903201015.00654.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: References: <200903201015.00654.mel.flynn+fbsd.questions@mailing.thruhere.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 18:46:22 -0000 > 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 - In the port, use: BUILD_OPTIMIZED=yes - In the port, use: WITH_PROC_SCOPE_PTH=yes - In the port, use: BUILD_STATIC=yes And that should be it? So the "libpthread" they discuss in the description for WITH_PROC_SCOPE_PTH is different than the linux pthreads? -M