Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 63537632C1A for ; Thu, 12 Mar 2009 16:11:39 -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 11811-03 for ; Thu, 12 Mar 2009 16:11:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by mail.postgresql.org (Postfix) with ESMTP id 294426327AA for ; Thu, 12 Mar 2009 16:11:30 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-101-194.bk7-dsl.surnet.cl [200.126.101.194]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id n2CJH4lN001219 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Mar 2009 12:18:09 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3269147CDE; Thu, 12 Mar 2009 16:10:20 -0300 (CLST) Date: Thu, 12 Mar 2009 16:10:20 -0300 From: Alvaro Herrera To: Tom Lane Cc: Scott Carey , Kevin Grittner , "pgsql-performance@postgresql.org" , "Jignesh K. Shah" Subject: Re: Proposal of tunable fix for scalability of 8.4 Message-ID: <20090312191020.GB29971@alvh.no-ip.org> References: <12916.1236882481@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12916.1236882481@sss.pgh.pa.us> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Thu, 12 Mar 2009 12:18:09 -0700 (PDT) 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: 200903/138 X-Sequence-Number: 33060 Tom Lane wrote: > Scott Carey writes: > > They are not meaningless. It is certainly more to understand, but the test is entirely valid without that. In a CPU bound / RAM bound case, as concurrency increases you look for the throughput trend, the %CPU use trend and the context switch rate trend. More information would be useful but the test is validated by the evidence that it is held up by lock contention. > > Er ... *what* evidence? There might be evidence somewhere that proves > that, but Jignesh hasn't shown it. The available data suggests that the > first-order performance limiter in this test is something else. > Otherwise it should be possible to max out the performance with a lot > less than 1000 active backends. With 200ms of think times as Jignesh just said, 1000 users does not equate 1000 active backends. (It's probably closer to 100 backends, given an avg. response time of ~20ms) Something that might be useful for him to report is the avg number of active backends for each data point ... -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support