From owner-freebsd-stable@FreeBSD.ORG Mon Jun 13 15:09:42 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 E95F916A41C; Mon, 13 Jun 2005 15:09:42 +0000 (GMT) (envelope-from petefrench@ticketswitch.com) Received: from mail.ticketswitch.com (mail.ticketswitch.com [194.200.93.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91F7543D48; Mon, 13 Jun 2005 15:09:42 +0000 (GMT) (envelope-from petefrench@ticketswitch.com) Received: from [172.16.1.6] (helo=dilbert.firstcallgroup.co.uk) by mail.ticketswitch.com with esmtp (Exim 4.50 (FreeBSD)) id 1DhqZD-000KKG-C0; Mon, 13 Jun 2005 16:09:35 +0100 Received: from petefrench by dilbert.firstcallgroup.co.uk with local (Exim 4.50 (FreeBSD)) id 1DhqZB-0000Jr-7s; Mon, 13 Jun 2005 16:09:33 +0100 To: eischen@vigrid.com, rwatson@freebsd.org In-Reply-To: <42AAFDB2.4010604@vigrid.com> Message-Id: From: Pete French Date: Mon, 13 Jun 2005 16:09:33 +0100 Cc: steve@lonres.com, freebsd-stable@freebsd.org Subject: Re: FreeBSD MySQL still WAY slower than Linux X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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:09:43 -0000 > 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 ? -pcf.