Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 908616338A9 for ; Thu, 12 Mar 2009 00:48:46 -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 89039-10 for ; Thu, 12 Mar 2009 00:48:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from brmea-mail-4.sun.com (brmea-mail-4.Sun.COM [192.18.98.36]) by mail.postgresql.org (Postfix) with ESMTP id 87C53633873 for ; Thu, 12 Mar 2009 00:48:44 -0300 (ADT) Received: from fe-amer-09.sun.com ([192.18.109.79]) by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n2C3mh82015294 for ; Thu, 12 Mar 2009 03:48:43 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; format=flowed; charset=ISO-8859-1 Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7.0-3.01 64bit (built Dec 23 2008)) id <0KGD00A00J5F6V00@mail-amer.sun.com> for pgsql-performance@postgresql.org; Wed, 11 Mar 2009 21:48:43 -0600 (MDT) Received: from Macintosh-8.local ([unknown] [129.150.32.136]) by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7.0-3.01 64bit (built Dec 23 2008)) with ESMTPSA id <0KGD007OFJX675B0@mail-amer.sun.com>; Wed, 11 Mar 2009 21:48:43 -0600 (MDT) Date: Wed, 11 Mar 2009 23:48:44 -0400 From: "Jignesh K. Shah" Subject: Re: Proposal of tunable fix for scalability of 8.4 In-reply-to: <29836.1236826066@sss.pgh.pa.us> To: Tom Lane Cc: Scott Carey , Kevin Grittner , "pgsql-performance@postgresql.org" Message-id: <49B8861C.2000005@sun.com> References: <29836.1236826066@sss.pgh.pa.us> User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200903/115 X-Sequence-Number: 33037 Tom Lane wrote: > Scott Carey writes: > >> 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. >> Exclusive locks may be delayed, but will NOT be starved, since on the next iteration, a streak of exclusive locks will occur first in the list and they will all process before any more shared locks can go. >> > > That's a lot of sunny assertions without any shred of evidence behind > them... > > The current LWLock behavior was arrived at over multiple iterations and > is not lightly to be toyed with IMHO. Especially not on the basis of > one benchmark that does not reflect mainstream environments. > > Note that I'm not saying "no". I'm saying that I want a lot more > evidence *before* we go to the trouble of making this configurable > and asking users to test it. > > regards, tom lane > > Fair enough.. Well I am now appealing to all who has a fairly decent sized hardware want to try it out and see whether there are "gains", "no-changes" or "regressions" based on your workload. Also it will help if you report number of cpus when you respond back to help collect feedback. Regards, Jignesh -- Jignesh Shah http://blogs.sun.com/jkshah The New Sun Microsystems,Inc http://sun.com/postgresql