X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 04DB89DCB83 for ; Fri, 24 Mar 2006 15:21:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 20349-01 for ; Fri, 24 Mar 2006 15:21:30 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by postgresql.org (Postfix) with ESMTP id 03CEB9DCAA3 for ; Fri, 24 Mar 2006 15:21:27 -0400 (AST) Received: from osgiliath.mathom.us ([151.200.254.241]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IWN001DXCFRX260@vms046.mailsrvcs.net> for pgsql-performance@postgresql.org; Fri, 24 Mar 2006 13:21:28 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 0C73F6E5B2 for ; Fri, 24 Mar 2006 14:21:26 -0500 (EST) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath.home.mathom.us [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03848-01-5 for ; Fri, 24 Mar 2006 14:21:25 -0500 (EST) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 10B5D6E630; Fri, 24 Mar 2006 14:21:25 -0500 (EST) Date: Fri, 24 Mar 2006 14:21:24 -0500 From: Michael Stone Subject: Re: Scaling up PostgreSQL in Multiple CPU / Dual Core In-reply-to: <60zmjfsnz0.fsf@dba2.int.libertyrms.com> To: pgsql-performance@postgresql.org Mail-followup-to: pgsql-performance@postgresql.org Message-id: <20060324192122.GJ15140@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-disposition: inline X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88 X-Virus-Scanned: Debian amavisd-new at mathom.us References: <65f9ddfb0603222219r1742c2aevda37acd55ca845be@mail.gmail.com> <1143131901.17999.67.camel@state.g2switchworks.com> <4422D033.2030407@commandprompt.com> <1143133364.17999.77.camel@state.g2switchworks.com> <87hd5olgyd.fsf@wolfe.cbbrowne.com> <20060324101440.GP90527@pervasive.com> <60zmjfsnz0.fsf@dba2.int.libertyrms.com> User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.15 required=5 tests=[AWL=-0.086, RCVD_IN_SORBS_WEB=1.236] X-Spam-Score: 1.15 X-Spam-Level: * X-Archive-Number: 200603/509 X-Sequence-Number: 17946 On Fri, Mar 24, 2006 at 01:21:23PM -0500, Chris Browne wrote: >A naive read on this is that you might start with one backend process, >which then spawns 16 more. Each of those backends is scanning through >one of those 16 files; they then throw relevant tuples into shared >memory to be aggregated/joined by the central one. Of course, table scanning is going to be IO limited in most cases, and having every query spawn 16 independent IO threads is likely to slow things down in more cases than it speeds them up. It could work if you have a bunch of storage devices, but at that point it's probably easier and more direct to implement a clustered approach. Mike Stone