pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Rethinking MemoryContext creation
Date: Mon, 11 Dec 2017 18:59:32 +0100
Message-ID: <c0ecca0f-f8d3-211e-e044-2e5819a28d51@2ndquadrant.com> (raw)
In-Reply-To: <13309.1512920544@sss.pgh.pa.us>
References: <2264.1512870796@sss.pgh.pa.us>
	<CAH2-Wzk4FQq4SpzNp0ppJ78NVMtBSznG=WtU=pxqq=iMQfY1QQ@mail.gmail.com>
	<13309.1512920544@sss.pgh.pa.us>


On 12/10/2017 04:42 PM, Tom Lane wrote:
> Peter Geoghegan <pg@bowt.ie> writes:
>> On Sat, Dec 9, 2017 at 5:53 PM, Tom Lane <tgl@sss.pgh.pa.us> 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.
> 
>> Is that with "-M prepared", too?
> 
> No, I didn't use that.
> 

FWIW I've done some measurements, and while there is a improvement, it's
far from 5%.

pgbench -S -c 1 -T 60

   master   patched
   -----------------
    18244     18534
    18369     18587
    18310     18479
    18346     18515
    18344     18557

pgbench -S -M prepared -c 1 -T 60

   master   patched
   -----------------
    35191     35231
    35115     35555
    35164     35686
    35110     35724
    35053     35762

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.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (23+ messages)  latest in thread

Message-ID: <c0ecca0f-f8d3-211e-e044-2e5819a28d51@2ndquadrant.com>
Permalink:  ../c0ecca0f-f8d3-211e-e044-2e5819a28d51@2ndquadrant.com/
Also on:    postgresql.org/message-id/c0ecca0f-f8d3-211e-e044-2e5819a28d51@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, tgl@sss.pgh.pa.us, pg@bowt.ie
  Subject: Re: Rethinking MemoryContext creation
  In-Reply-To: <c0ecca0f-f8d3-211e-e044-2e5819a28d51@2ndquadrant.com>
  References: <2264.1512870796@sss.pgh.pa.us> <CAH2-Wzk4FQq4SpzNp0ppJ78NVMtBSznG=WtU=pxqq=iMQfY1QQ@mail.gmail.com> <13309.1512920544@sss.pgh.pa.us> <c0ecca0f-f8d3-211e-e044-2e5819a28d51@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox