From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 08:52:29 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B508716A4CE for ; Wed, 11 May 2005 08:52:29 +0000 (GMT) Received: from melon.pingpong.net (82.milagro.bahnhof.net [195.178.168.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3074743D60 for ; Wed, 11 May 2005 08:52:29 +0000 (GMT) (envelope-from girgen@FreeBSD.org) Received: from localhost (localhost.pingpong.net [127.0.0.1]) by melon.pingpong.net (Postfix) with ESMTP id 983984ADCA for ; Wed, 11 May 2005 10:52:27 +0200 (CEST) Received: from melon.pingpong.net ([127.0.0.1]) by localhost (melon.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24667-02-11 for ; Wed, 11 May 2005 10:52:27 +0200 (CEST) Received: from palle.girgensohn.se (1-2-8-5a.asp.sth.bostream.se [82.182.157.66]) by melon.pingpong.net (Postfix) with ESMTP id 6543D4ADB2 for ; Wed, 11 May 2005 10:52:27 +0200 (CEST) Date: Wed, 11 May 2005 10:52:26 +0200 From: Palle Girgensohn To: hackers@freebsd.org Message-ID: X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at pingpong.net Subject: Does thread safety give any performance penalties? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 08:52:29 -0000 Hi! Please see discussion on postgresql hackers list below. Anyone with better knowledge about this might have some input here? Thanks, Palle ---------- Forwarded Message ---------- Date: onsdag, maj 11, 2005 00.58.38 -0400 From: Tom Lane To: Bruce Momjian Subject: Re: [HACKERS] --enable-thread-safety? Bruce Momjian writes: > Palle Girgensohn wrote: >> Need a piece of advice here. I'm wrapping up the ports for FreeBSD, and >> jus wonder if it is perhaps clever to always add --enable-thread-safety >> to the configure args. Is there a big enough penalty for having it off >> by default, or can I just have it on always? > I don't think there is any real penalty in PostgreSQL for having it on. > I don't know what the operating system overhead is on FreeBSD. More to the point: the overhead if any is all at the libc level. If your libc is such that there isn't any penalty for thread support (perhaps better stated "you pay the overhead whether you want it or not") then go for it. I believe this is the case in recent Linuxen, but I don't know the state of play in BSDen. regards, tom lane ---------- End Forwarded Message ----------