Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C5A196325A2 for ; Wed, 8 Sep 2010 16:44:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 24576-02 for ; Wed, 8 Sep 2010 19:44:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 856BC632BF8 for ; Wed, 8 Sep 2010 16:44:41 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o88JiagS008755; Wed, 8 Sep 2010 15:44:36 -0400 (EDT) To: Greg Smith cc: David Kerr , pgsql-performance@postgresql.org Subject: Re: pgbench could not send data to client: Broken pipe In-reply-to: <4C87E3A6.8060800@2ndquadrant.com> References: <20100908174629.GD40339@mr-paradox.net> <8037.1283973026@sss.pgh.pa.us> <4C87E3A6.8060800@2ndquadrant.com> Comments: In-reply-to Greg Smith message dated "Wed, 08 Sep 2010 15:27:34 -0400" Date: Wed, 08 Sep 2010 15:44:36 -0400 Message-ID: <8754.1283975076@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/31 X-Sequence-Number: 40234 Greg Smith writes: > Tom Lane wrote: >> So I think you could get above the FD_SETSIZE limit with a bit of >> hacking if you were using 9.0's pgbench. No chance with 8.3 though. > I believe David can do this easily enough by compiling a 9.0 source code > tree with the "--disable-thread-safety" option. It would take a bit more work than that, because the code still tries to limit the client count based on FD_SETSIZE. He'd need to hack it so that in non-thread mode, the limit is FD_SETSIZE per subprocess. I was suggesting that an official patch to that effect would be a good thing. > It's kind of futile to run pgbench simulating much more than a hundred > or two clients before 9.0 anyway. Yeah ... regards, tom lane