From owner-freebsd-stable@FreeBSD.ORG Mon Jun 13 15:34:26 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91EA316A41C; Mon, 13 Jun 2005 15:34:26 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 472F343D58; Mon, 13 Jun 2005 15:34:26 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.4/8.13.4/NETPLEX) with ESMTP id j5DFYOpV028727; Mon, 13 Jun 2005 11:34:25 -0400 (EDT) Date: Mon, 13 Jun 2005 11:34:24 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Pete French In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-stable@freebsd.org, rwatson@freebsd.org, steve@lonres.com Subject: Re: FreeBSD MySQL still WAY slower than Linux X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2005 15:34:26 -0000 On Mon, 13 Jun 2005, Pete French wrote: > > You can set the environment variable LIBPTHREAD_SYSTEM_SCOPE to force > > libpthread to use system scope. This is easier than rebuilding libpthread > > (with SYSTEM_SCOPE_ONLY defined) and allows you to use M:N for some > > applications and 1:1 for others. > > Is the sysctl kern.threads.thr_scope_sys supposed to achieve the same > thing ? using the environment variable solves a different problem I > have, but setting the sysctl doesn't. Is there any way to force pthreads > to system scope by default ? kern.threads.thr_scope_sys is for libthr only. Reread the above for the answer to your last question. -- DE