Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 48C2D632595 for ; Sat, 21 Mar 2009 05:50:37 -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 32015-10 for ; Sat, 21 Mar 2009 05:50:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail137074.authsmtp.com (outmail137074.authsmtp.com [62.13.137.74]) by mail.postgresql.org (Postfix) with ESMTP id 82E2B632558 for ; Sat, 21 Mar 2009 05:50:33 -0300 (ADT) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt4.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n2L8oPw2025118; Sat, 21 Mar 2009 08:50:25 GMT Received: from [192.168.0.4] (85-211-223-92.dyn.gotadsl.co.uk [85.211.223.92]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n2L8oO5n027555; Sat, 21 Mar 2009 08:50:24 GMT Subject: Re: Proposal of tunable fix for scalability of 8.4 From: Simon Riggs To: Matthew Wakeling Cc: Scott Carey , "pgsql-performance@postgresql.org" In-Reply-To: References: <603c8f070903121829r31cf1472ha9876e5c480a542e@mail.gmail.com> <12292.1236964604@sss.pgh.pa.us> <49BB699D.1070809@enterprisedb.com> ,<1237362833.3953.186.camel@ebony.2ndQuadrant> Content-Type: text/plain Date: Sat, 21 Mar 2009 08:50:39 +0000 Message-Id: <1237625439.3953.539.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 51c0dfd5-15f5-11de-8a51-002264978518 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFagRbYFhD HGQLW11EUFV7XGN/ aQ8fZQBDYEtPQQdo U1ZAQE1QEQdtHhxP WBxiWkYNcltGenl1 YEMsX3lYXgp/dBV9 FhgAEHAHYDFldWEe BBVFf1JRcR5Kfh1H bFR2U3sIYG1JBA9q VzwLEgofGg96HWxt WAYVKkkbRQ4MEHYg WhYLFzEiVUMEV209 KAZuMVUVGE8bM0Ez LUppXlxQY1lOYiwg X-Authentic-SMTP: 61633235383639.pelican.dmpriest.net.uk:1378/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200903/315 X-Sequence-Number: 33237 On Fri, 2009-03-20 at 15:28 +0000, Matthew Wakeling wrote: > On Thu, 19 Mar 2009, Scott Carey wrote: > > In type B, the ratio of requests that must context switch is always == > > 1. Every request must queue and wait! > > A remarkably good point, although not completely correct. Every request > that arrives when the lock is held in any way already will queue and wait. > Requests that arrive when the lock is free will run immediately. I admit > it, this is a killer for this particular locking strategy. I think the right mix of theory and test here is for people to come up with new strategies that seem to make sense and then we'll test them all. Trying too hard to arrive at the best strategy purely through discussion will mean we miss a few tricks. Feels like we're on the right track here. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support