Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1F9B863347F for ; Wed, 11 Mar 2009 23:02:07 -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 62131-03 for ; Wed, 11 Mar 2009 23:01:53 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EXHUB018-3.exch018.msoutlookonline.net (exhub018-3.exch018.msoutlookonline.net [64.78.17.18]) by mail.postgresql.org (Postfix) with ESMTP id 89DB16332EC for ; Wed, 11 Mar 2009 23:02:02 -0300 (ADT) Received: from EXVMBX018-1.exch018.msoutlookonline.net ([64.78.17.47]) by EXHUB018-3.exch018.msoutlookonline.net ([64.78.17.18]) with mapi; Wed, 11 Mar 2009 19:02:00 -0700 From: Scott Carey To: Kevin Grittner , "pgsql-performance@postgresql.org" , "Jignesh K. Shah" Date: Wed, 11 Mar 2009 19:01:57 -0700 Subject: Re: Proposal of tunable fix for scalability of 8.4 Thread-Topic: [PERFORM] Proposal of tunable fix for scalability of 8.4 Thread-Index: AcmimJnmGbPRV/+JS6yWzSVFHWlCPgAHevzo Message-ID: In-Reply-To: <49B7F470.EE98.0025.0@wicourts.gov> Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_C5DDBB253333scottrichrelevancecom_" MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL=-0.000, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200903/112 X-Sequence-Number: 33034 --_000_C5DDBB253333scottrichrelevancecom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On 3/11/09 3:27 PM, "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 waiti= ng on writers at any given time. Readers can 'cut' in line ahead of writer= s within a certain scope (only up to the number waiting at the time a share= d 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 thr= oughput. 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 the= y will all process before any more shared locks can go. This will even help in on a single CPU system if it is read dominated, lowe= ring read latency and slightly increasing write latency. If you want to make this more fair, instead of freeing all shared locks, li= mit the count to some number, such as the number of CPU cores. Perhaps rat= her than wake-up-all-waiters=3Dtrue, the parameter can be an integer repres= enting how many shared locks can be freed at once if an exclusive lock is e= ncountered. -Kevin -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance --_000_C5DDBB253333scottrichrelevancecom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: [PERFORM] Proposal of tunable fix for scalability of 8.4 On 3/11/09 3:27 PM, "Kevin Grittner" <Kevin.Grittner@wicourts.gov> 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<= BR> to better use of the numerous spindles, but when it's all in RAM it
makes no sense.

-Kevin

--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www= .postgresql.org/mailpref/pgsql-performance

--_000_C5DDBB253333scottrichrelevancecom_--