Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1D381634907 for ; Thu, 12 Mar 2009 12:44:59 -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 59568-05 for ; Thu, 12 Mar 2009 12:44:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 063AC6348C6 for ; Thu, 12 Mar 2009 12:44:56 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Thu, 12 Mar 2009 10:44:55 -0500 Message-Id: <49B8E79C.EE98.0025.0@wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.3 Date: Thu, 12 Mar 2009 10:44:44 -0500 From: "Kevin Grittner" To: "=?ISO-8859-15?Q?Grzegorz=20Ja*kiewicz?=" Cc: "pgsql-performance@postgresql.org" , "Scott Carey" , "Jignesh K. Shah" Subject: Re: Proposal of tunable fix for scalability of 8.4 References: <49B7F470.EE98.0025.0@wicourts.gov> <49B8E044.EE98.0025.0@wicourts.gov> <2f4958ff0903120831q4ca3d0a8o8f2571f16b316ecf@mail.gmail.com> In-Reply-To: <2f4958ff0903120831q4ca3d0a8o8f2571f16b316ecf@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200903/125 X-Sequence-Number: 33047 >>> Grzegorz Ja˝kiewicz wrote: > Scalability is something that is affected by everything, and fixing > this makes sens as much as looking at possible fixes to make raids > more scalable, which is looked at by someone else I think. > So please, don't say that this doesn't make sense because he tested it > against ram disc. That was precisely the point of exercise. I'm probably more inclined to believe that his change may have merit than many here, but I can't accept anything based on this test until someone answers the question, so far ignored by all responses, of where the bottleneck is at the low end which allows linear scalability up to 1000 users (which I assume means connections). I'm particularly inclined to be suspicious of this test since my own benchmarks, with real applications replaying real URL requests from a production website that gets millions of hits per day, show that response time and throughput are improved by using a connection pool with queuing to limit the concurrent active queries. My skepticism is not helped by the fact that in a previous discussion with someone about performance as connections are increased, this point was covered by introducing a "primitive" connection pool -- which used a one second sleep for a thread if the maximum number of connections were already in use, rather than proper queuing and semaphores. That really gives no clue how performance would be with a real connection pool. -Kevin