Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDTRW-00015y-RF for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Feb 2014 06:37:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WDTRW-0007Vi-Af for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Feb 2014 06:37:10 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDTRV-0007Vc-KJ for pgsql-bugs@postgresql.org; Wed, 12 Feb 2014 06:37:09 +0000 Received: from mail12.ics.ntts.co.jp ([210.232.35.65]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDTRS-0006bk-KK for pgsql-bugs@postgresql.org; Wed, 12 Feb 2014 06:37:09 +0000 Received: from sadoku34.silk.ntts.co.jp (sadoku34 [10.7.18.34]) by mail12.ics.ntts.co.jp (8.14.4/8.14.4/NTTSOFT) with ESMTP id s1C6b3Pw002048 for ; Wed, 12 Feb 2014 15:37:03 +0900 (JST) Received: (from root@localhost) by sadoku34.silk.ntts.co.jp (8.13.8/NTTSOFT) id s1C6b384005107 for pgsql-bugs@postgresql.org; Wed, 12 Feb 2014 15:37:03 +0900 (JST) Received: from ccmds32.silk.ntts.co.jp [10.107.0.32] by sadoku34.silk.ntts.co.jp with SMTP id RAA05106; Wed, 12 Feb 2014 15:37:03 +0900 Received: from mail147.silk.ntts.co.jp (ccmds32.silk.ntts.co.jp [127.0.0.1]) by ccmds32.silk.ntts.co.jp (8.14.3/8.14.3) with ESMTP id s1C6b2QU001002 for ; Wed, 12 Feb 2014 15:37:02 +0900 Received: from mail147.silk.ntts.co.jp (localhost.localdomain [127.0.0.1]) by mail147.silk.ntts.co.jp (8.14.5/8.14.5/NTTSOFT) with ESMTP id s1C6axUK008706 for ; Wed, 12 Feb 2014 15:37:00 +0900 Received: from ccmds32 (mail145.silk.ntts.co.jp [10.107.0.145]) by mail147.silk.ntts.co.jp (8.14.5/8.14.5/NTTSOFT) with SMTP id s1C6axtn008703 for ; Wed, 12 Feb 2014 15:36:59 +0900 Message-ID: <52FB1677.30100@po.ntts.co.jp> Date: Wed, 12 Feb 2014 15:36:39 +0900 From: Tomonari Katsumata User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #8470: 9.3 locking/subtransaction performance regression References: <20131220204753.GG22570@eldon.alvh.no-ip.org> <20131223155603.GI22570@eldon.alvh.no-ip.org> <20131223162903.GJ22570@eldon.alvh.no-ip.org> <20131223195300.GK22570@eldon.alvh.no-ip.org> <20131230181151.GG12910@alap2.anarazel.de> <20131231163418.GW22570@eldon.alvh.no-ip.org> <20131231202753.GY22570@eldon.alvh.no-ip.org> <20140114124305.GA28072@saarenmaa.fi> <20140114130909.GE6840@eldon.alvh.no-ip.org> In-Reply-To: <20140114130909.GE6840@eldon.alvh.no-ip.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: CC-Mail-V4.3-Client X-CC-Mail-RelayStamp: CC-Mail-V4.3-Server X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, I don't understand about this problem, but it seems this problem is still remaining in 93_STABLE(*). (*)f1e522696fbc01b5c8a41dbd45d6cbae229be425 9.3.2 : 4.225(s) 93_STABE: 2.819(s) 9.2.6 : 0.135(s) 93_STABLE is faster than 9.3.2, but it's apparently slower than 9.2.6. 9.3.3 is going to be released in next week. Will any fixes be included in 9.3.3? regards, ----------- Tomonari Katsumata (2014/01/14 22:09), Alvaro Herrera wrote: > Oskari Saarenmaa wrote: >> Thanks for looking at this and sorry about the late reply, I finally got >> around to testing your latest patch. >> >> 20.12.2013 22:47, Alvaro Herrera kirjoitti: >>>> Removing the BEGIN/EXCEPTION/END block and just doing a 'SELECT FOR >>>> UPDATE' for a suitable row is significantly slower in 9.3.0 (314.765 ms >>>> vs 118.894 ms on 9.2.4). A 'SELECT' without a FOR UPDATE and >>>> BEGIN/EXCEPTION/END has the same performance on 9.2.4 and 9.3.0. >>> >>> I have come up with the attached patch. As far as I can tell it >>> restores performance roughly to the level of 9.2 for this test case; >>> could you please try it out and see if it fixes things for you? It'd be >>> particularly good if you can check not only the test case you submitted >>> but also the one that made you explore this in the first place. >> >> I didn't try this patch, but I built today's REL9_3_STABLE with the patch >> from your mail on the 31st of Dec >> (http://github.com/saaros/postgres/tree/alvaro-multixact-optimize-9.3) and >> ran the older version of my appliaction's test suite which has a case that >> times out after 3 minutes with unpatched 9.3. With the current patch the >> test case successfully completes in ~20 seconds which is a major improvement >> although it's still slower than 9.2 It also passes all other test cases in >> my test suite. >> >> Do you think it'll make it to 9.3.3? > > Well, I gave this patch a long, careful look and eventually noticed that > there was a rather subtle but serious design bug in it, and I had to > ditch it. I have the intention to come back to this problem again > later, but right now I cannot. > > I'm not sure whether I will have something for 9.3.3, but it's not > likely because that'll happen only in a week or two. > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs