Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id ECFB76337CD for ; Sun, 5 Apr 2009 14:12:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 04636-06 for ; Sun, 5 Apr 2009 14:12:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from vexbert.mr-paradox.net (vexbert.mr-paradox.net [198.145.180.174]) by mail.postgresql.org (Postfix) with ESMTP id 8F37763373D for ; Sun, 5 Apr 2009 14:12:23 -0300 (ADT) Received: from [192.168.1.9] (c-24-22-17-180.hsd1.or.comcast.net [24.22.17.180]) (Authenticated sender: dmk) by vexbert.mr-paradox.net (Postfix) with ESMTP id 3F28B84530; Sun, 5 Apr 2009 13:12:21 -0400 (EDT) Message-ID: <49D8E682.9020601@mr-paradox.net> Date: Sun, 05 Apr 2009 10:12:34 -0700 From: David Kerr User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Tom Lane CC: Simon Riggs , pgsql-performance@postgresql.org Subject: Re: Question on pgbench output References: <20090403195302.GA54342@mr-paradox.net> <24809.1238799146@sss.pgh.pa.us> <20090403233458.GC54342@mr-paradox.net> <1238914900.5444.292.camel@ebony.2ndQuadrant> <4665.1238946412@sss.pgh.pa.us> In-Reply-To: <4665.1238946412@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/105 X-Sequence-Number: 33472 Tom Lane wrote: > 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 > Fortunately the network throughput issue is not mine to solve. Would it be fair to say that with the pgbench output i've given so far that if all my users clicked "go" at the same time (i.e., worst case scenario), i could expect (from the database) about 8 second response time? Thanks Dave Kerr