Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOSWY-0008Ai-1L for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2017 18:09:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOSWX-00060W-Ko for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2017 18:09:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eOSWX-00060N-EP for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2017 18:09:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eOSWQ-00029J-OO for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2017 18:09:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vBBI9gph018352; Mon, 11 Dec 2017 13:09:42 -0500 From: Tom Lane To: Tomas Vondra cc: Peter Geoghegan , PostgreSQL Hackers Subject: Re: Rethinking MemoryContext creation In-reply-to: References: <2264.1512870796@sss.pgh.pa.us> <13309.1512920544@sss.pgh.pa.us> Comments: In-reply-to Tomas Vondra message dated "Mon, 11 Dec 2017 18:59:32 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18350.1513015782.1@sss.pgh.pa.us> Date: Mon, 11 Dec 2017 13:09:42 -0500 Message-ID: <18351.1513015782@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > On 12/10/2017 04:42 PM, Tom Lane wrote: >> Peter Geoghegan writes: >>> On Sat, Dec 9, 2017 at 5:53 PM, Tom Lane wrote: >>>> Overall I'm seeing about a 5% improvement in a "pgbench -S" scenario, >>>> although that number is a bit shaky since the run-to-run variation >>>> is a few percent anyway. > FWIW I've done some measurements, and while there is a improvement, it's > far from 5%. ... > So that's about 1.3% and 1.2% improvement. It seems fairly consistent, > but it might easily be due to different in layout of the binaries. Thanks for checking. With these sorts of small-percentage improvements, I would not be surprised for platform-to-platform results to be different. At least you do see some improvement too. Let me code up the change to avoid copying constant name strings, and then we can see if that helps any. regards, tom lane