Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2D447633594 for ; Fri, 3 Apr 2009 19:52:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 37549-07 for ; Fri, 3 Apr 2009 19:52:25 -0300 (ADT) 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 77859632E41 for ; Fri, 3 Apr 2009 19:52:31 -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 n33MqQcI024810; Fri, 3 Apr 2009 18:52:26 -0400 (EDT) To: Greg Smith cc: David Kerr , pgsql-performance@postgresql.org Subject: Re: Question on pgbench output In-reply-to: References: <20090403195302.GA54342@mr-paradox.net> Comments: In-reply-to Greg Smith message dated "Fri, 03 Apr 2009 17:51:50 -0400" Date: Fri, 03 Apr 2009 18:52:26 -0400 Message-ID: <24809.1238799146@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.092 tagged_above=0 required=5 tests=AWL=0.092 X-Spam-Level: X-Archive-Number: 200904/87 X-Sequence-Number: 33454 Greg Smith writes: > pgbench is extremely bad at simulating large numbers of clients. The > pgbench client operates as a single thread that handles both parsing the > input files, sending things to clients, and processing their responses. > It's very easy to end up in a situation where that bottlenecks at the > pgbench client long before getting to 400 concurrent connections. Yeah, good point. > That said, if you're in the hundreds of transactions per second range that > probably isn't biting you yet. I've seen it more once you get around > 5000+ things per second going on. However, I don't think anyone else has been pgbench'ing transactions where client-side libpq has to absorb (and then discard) a megabyte of data per xact. I wouldn't be surprised that that eats enough CPU to make it an issue. David, did you pay any attention to how busy the pgbench process was? Another thing that strikes me as a bit questionable is that your stated requirements involve being able to pump 400MB/sec from the database server to your various client machines (presumably those 400 people aren't running their client apps directly on the DB server). What's the network fabric going to be, again? Gigabit Ethernet won't cut it... regards, tom lane