X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9864A32B16F for ; Wed, 20 Oct 2004 18:15:09 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66618-01 for ; Wed, 20 Oct 2004 17:14:55 +0000 (GMT) Received: from dbl.q-ag.de (dbl.q-ag.de [213.172.117.3]) by svr1.postgresql.org (Postfix) with ESMTP id 2858632A2FD for ; Wed, 20 Oct 2004 18:14:54 +0100 (BST) Received: from [127.0.0.2] (dbl [127.0.0.1]) by dbl.q-ag.de (8.12.3/8.12.3/Debian-6.6) with ESMTP id i9KHEkSL004225; Wed, 20 Oct 2004 19:14:47 +0200 Message-ID: <41769D06.7080407@colorfullife.com> Date: Wed, 20 Oct 2004 19:14:46 +0200 From: Manfred Spraul User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.3) Gecko/20040922 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Wong Cc: neilc@samurai.com, pgsql-performance@postgresql.org Subject: Re: futex results with dbt-3 References: <417221B5.1050704@colorfullife.com> <20041020101001.A13359@osdl.org> In-Reply-To: <20041020101001.A13359@osdl.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/419 X-Sequence-Number: 8895 Mark Wong wrote: >I've heard that simply linking to the pthreads libraries, regardless of >whether you're using them or not creates a significant overhead. Has >anyone tried it for kicks? > > > That depends on the OS and the functions that are used. The typical worst case is buffered IO of single characters: The single threaded implementation is just copy and update buffer status, the multi threaded implementation contains full locking. For most other functions there is no difference at all. -- Manfred