Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 990F663462A for ; Tue, 17 Mar 2009 21:14:03 -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 70948-07 for ; Tue, 17 Mar 2009 21:13:54 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by mail.postgresql.org (Postfix) with ESMTP id 08DA463474A for ; Tue, 17 Mar 2009 21:12:11 -0300 (ADT) X-Greylist: delayed 00:10:15.356524 by SQLgrey-1.7.6 Received: from brmea-mail-4.sun.com (brmea-mail-4.Sun.COM [192.18.98.36]) by mx3.hub.org (Postfix) with ESMTP id 553EA37B81E for ; Tue, 17 Mar 2009 21:12:00 -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 n2HNt4jD014211 for ; Tue, 17 Mar 2009 23:55:04 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-5.01 64bit (built Feb 19 2009)) id <0KGO00K00CNKU800@mail-amer.sun.com> for pgsql-performance@postgresql.org; Tue, 17 Mar 2009 17:55:04 -0600 (MDT) Received: from [192.168.1.3] ([unknown] [96.237.55.23]) by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7.0-5.01 64bit (built Feb 19 2009)) with ESMTPSA id <0KGO003PDD3I4R00@mail-amer.sun.com>; Tue, 17 Mar 2009 17:55:03 -0600 (MDT) Date: Tue, 17 Mar 2009 19:54:54 -0400 From: "Jignesh K. Shah" Subject: Re: Proposal of tunable fix for scalability of 8.4 In-reply-to: <1237330778.3953.139.camel@ebony.2ndQuadrant> To: Simon Riggs Cc: Tom Lane , Kevin Grittner , pgsql-performance@postgresql.org Message-id: <49C0384E.2020707@sun.com> References: <49B824DD.7090302@sun.com> <49B7F470.EE98.0025.0@wicourts.gov> <29080.1236821556@sss.pgh.pa.us> <49B87161.10201@sun.com> <1237225198.3963.60.camel@ebony.2ndQuadrant> <49C01900.5030406@sun.com> <1237330778.3953.139.camel@ebony.2ndQuadrant> User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200903/238 X-Sequence-Number: 33160 Simon Riggs wrote: > On Tue, 2009-03-17 at 17:41 -0400, Jignesh K. Shah wrote: > > >> I did a quick test with patch. Unfortunately it improves my number >> even with default setting 0 (not sure whether I should be pleased or >> sad - Definitely no overhead infact seems to help performance a bit. >> NOTE: Logic is same, implementation is slightly different for default >> set) >> > > OK, I bite. 25% gain from doing nothing??? You're stretching my... err, > credulity. > > I like the train of thought for setting 1 and it is worth investigating, > but something feels wrong somewhere. > > Actually I think I am hurting my credibility here since I cannot explain the improvement with the patch but still using default logic (thought different way I compare sequential using fields from the previous proc structure instead of comparing with constant boolean) But the change was necessary to allow it to handle multiple algorithms and yet be sleek and not bloated. In next couple of weeks I plan to test the patch on a different x64 based system to do a sanity testing on lower number of cores and also try out other workloads ... Regards, Jignesh