Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id B5D6363328F for ; Thu, 12 Mar 2009 12:13:45 -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 51600-09 for ; Thu, 12 Mar 2009 12:13:44 -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 D59156327AA for ; Thu, 12 Mar 2009 12:13:42 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Thu, 12 Mar 2009 10:13:42 -0500 Message-Id: <49B8E044.EE98.0025.0@wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.3 Date: Thu, 12 Mar 2009 10:13:24 -0500 From: "Kevin Grittner" To: "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> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200903/123 X-Sequence-Number: 33045 >>> Scott Carey wrote: > "Kevin Grittner" wrote: > >> I'm a lot more interested in what's happening between 60 and 180 >> than over 1000, personally. If there was a RAID involved, I'd put >> it down to better use of the numerous spindles, but when it's all >> in RAM it makes no sense. > > If there is enough lock contention and a common lock case is a short > lived shared lock, it makes perfect sense sense. Fewer readers are > blocked waiting on writers at any given time. Readers can 'cut' in > line ahead of writers within a certain scope (only up to the number > waiting at the time a shared lock is at the head of the queue). > Essentially this clumps up shared and exclusive locks into larger > streaks, and allows for higher shared lock throughput. You misunderstood me. I wasn't addressing the affects of his change, but rather the fact that his test shows a linear improvement in TPS up to 1000 connections for a 64 thread machine which is dealing entirely with RAM -- no disk access. Where's the bottleneck that allows this to happen? Without understanding that, his results are meaningless. -Kevin