Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 81583632954 for ; Sun, 5 Apr 2009 12:47:02 -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 01110-05 for ; Sun, 5 Apr 2009 12:47:00 -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 000C36328BB for ; Sun, 5 Apr 2009 12:47:00 -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 n35Fkq3S004666; Sun, 5 Apr 2009 11:46:52 -0400 (EDT) To: Simon Riggs cc: David Kerr , pgsql-performance@postgresql.org Subject: Re: Question on pgbench output In-reply-to: <1238914900.5444.292.camel@ebony.2ndQuadrant> References: <20090403195302.GA54342@mr-paradox.net> <24809.1238799146@sss.pgh.pa.us> <20090403233458.GC54342@mr-paradox.net> <1238914900.5444.292.camel@ebony.2ndQuadrant> Comments: In-reply-to Simon Riggs message dated "Sun, 05 Apr 2009 08:01:39 +0100" Date: Sun, 05 Apr 2009 11:46:52 -0400 Message-ID: <4665.1238946412@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.106 tagged_above=0 required=5 tests=AWL=0.106 X-Spam-Level: X-Archive-Number: 200904/104 X-Sequence-Number: 33471 Simon Riggs writes: > On Fri, 2009-04-03 at 16:34 -0700, David Kerr wrote: >> 400 concurrent users doesn't mean that they're pulling 1.5 megs / >> second every second. > There's a world of difference between 400 connected and 400 concurrent > users. You've been testing 400 concurrent users, yet without measuring > data transfer. The think time will bring the number of users right down > again, but you really need to include the much higher than normal data > transfer into your measurements and pgbench won't help there. Actually pgbench can simulate think time perfectly well: use its \sleep command in your script. I think you can even set it up to randomize the sleep time. I agree that it seems David has been measuring a case far beyond what his real problem is. regards, tom lane