pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: Saul, Jean Paolo <paolo.saul@verizonconnect.com>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15609: synchronous_commit=off insert performance regression with secondary indexes
Date: Mon, 11 Feb 2019 17:42:39 -0800
Message-ID: <CAH2-WznvXb2KdDVyrmkOvvTEhonCKs4eSF01WeLLgAnSSkPVSw@mail.gmail.com> (raw)
In-Reply-To: <CA+73ANcmHFY5fejw_6tbXexUAw6OYovab4ou=KYOtd3_qosYPQ@mail.gmail.com>
References: <15609-3e1e2b03ff3bdb01@postgresql.org>
	<877eeohqnk.fsf@news-spur.riddles.org.uk>
	<CA+73ANcvnn4jwO+7+YmkpAfgez8yms5whwGhbBdtVVGOrGi2Bw@mail.gmail.com>
	<CAH2-Wzm+6hJutWBMpcHELgedttht9swMsFo5n4fpmojM7iM7ow@mail.gmail.com>
	<CA+73ANdkhawXh9ySn=nBDw731uAp+HNp-VCj0B3JmG0zovYmDg@mail.gmail.com>
	<CAH2-Wzk8ihamcwG3Pd46XVyvTfGEGKBfQR6AJtT3ffdEnJgOGA@mail.gmail.com>
	<CA+73ANdXO+wDj+SmyXpDbCNOeZziSD0J889CaJZT6-FTeOOrRQ@mail.gmail.com>
	<CA+73ANeHCJtr3cKp9Pfyoj0B51Ms5HEbKVTXF+zYD+ictWq6KA@mail.gmail.com>
	<CAH2-Wznx7S75JMGEA1NWO0YAquX+_Lj7zVpC51HhrxQikAki4Q@mail.gmail.com>
	<CA+73ANcqd2mMLJBwJrJKwSUiiVqn5Kbde2a=e+WhuCPSCP+p3A@mail.gmail.com>
	<CA+73ANe8ha7X7B8qNr7xkJ-T+WrU-m-7rAt0Y1ejpoFArUe8Sw@mail.gmail.com>
	<CA+73ANffu7xZDPOAtH5=jNsN2eyOWx8Dw0R4Hi_92pxqm4=1Ag@mail.gmail.com>
	<CAH2-Wznf1uVBguutwrvR+6NcXTKYhagvNOY3-dg9dzcYiu_vKw@mail.gmail.com>
	<CA+73ANdUpds_si3iGyStPPJDjEyAOvz5OokPkWnOuK9VMVWjsA@mail.gmail.com>
	<CAH2-WzkcEiYcpNv-rTH4KosjTUPiBwbvMbiuWd0VDn8F6kRHhg@mail.gmail.com>
	<CA+73ANd0Yzz_xbKk0_3LMy2i=WOSJb5w_w9KEpZoO88Hps53Wg@mail.gmail.com>
	<CAH2-WzkMssT_X+GXjU_o19dS7y9wpruzOCFSYOLf1Sj1yxutrQ@mail.gmail.com>
	<CA+73ANd32+Bhm4BBwtZSEA3-cU0R-vMBvU-uk3KieTnPG3pAPA@mail.gmail.com>
	<CAH2-Wzm+9tmVqpJWM28P_OEhMj2_ihydyt=rziLV3SDnu3NTTQ@mail.gmail.com>
	<CA+73ANcmHFY5fejw_6tbXexUAw6OYovab4ou=KYOtd3_qosYPQ@mail.gmail.com>

On Mon, Feb 11, 2019 at 5:36 PM Saul, Jean Paolo
<paolo.saul@verizonconnect.com> wrote:
> Using prepared and extended. No luck.

And your checkpoint settings?

The performance you're seeing is pretty bad for a server that has more
than 40GB of memory. I can get far superior performance on the same
benchmark with a relatively inexpensive workstation, at least on the
master branch.

Try these for a start if you're using default checkpoint settings, as
I suspect you are:

checkpoint_timeout=5min
min_wal_size=10GB
max_wal_size=40GB
wal_compression=on
backend_flush_after=0
checkpoint_flush_after=256kB
checkpoint_completion_target=0.9

-- 
Peter Geoghegan




view thread (38+ messages)  latest in thread

Message-ID: <CAH2-WznvXb2KdDVyrmkOvvTEhonCKs4eSF01WeLLgAnSSkPVSw@mail.gmail.com>
Permalink:  ../CAH2-WznvXb2KdDVyrmkOvvTEhonCKs4eSF01WeLLgAnSSkPVSw@mail.gmail.com/
Also on:    postgresql.org/message-id/CAH2-WznvXb2KdDVyrmkOvvTEhonCKs4eSF01WeLLgAnSSkPVSw@mail.gmail.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-bugs@postgresql.org
  Cc: pg@bowt.ie, paolo.saul@verizonconnect.com, andrew@tao11.riddles.org.uk
  Subject: Re: BUG #15609: synchronous_commit=off insert performance regression with secondary indexes
  In-Reply-To: <CAH2-WznvXb2KdDVyrmkOvvTEhonCKs4eSF01WeLLgAnSSkPVSw@mail.gmail.com>
  References: <15609-3e1e2b03ff3bdb01@postgresql.org> <CAH2-Wznx7S75JMGEA1NWO0YAquX+_Lj7zVpC51HhrxQikAki4Q@mail.gmail.com> <CA+73ANcqd2mMLJBwJrJKwSUiiVqn5Kbde2a=e+WhuCPSCP+p3A@mail.gmail.com> <CA+73ANe8ha7X7B8qNr7xkJ-T+WrU-m-7rAt0Y1ejpoFArUe8Sw@mail.gmail.com> <CA+73ANffu7xZDPOAtH5=jNsN2eyOWx8Dw0R4Hi_92pxqm4=1Ag@mail.gmail.com> <CAH2-Wznf1uVBguutwrvR+6NcXTKYhagvNOY3-dg9dzcYiu_vKw@mail.gmail.com> <CA+73ANdUpds_si3iGyStPPJDjEyAOvz5OokPkWnOuK9VMVWjsA@mail.gmail.com> <CAH2-WzkcEiYcpNv-rTH4KosjTUPiBwbvMbiuWd0VDn8F6kRHhg@mail.gmail.com> <CA+73ANd0Yzz_xbKk0_3LMy2i=WOSJb5w_w9KEpZoO88Hps53Wg@mail.gmail.com> <CAH2-WzkMssT_X+GXjU_o19dS7y9wpruzOCFSYOLf1Sj1yxutrQ@mail.gmail.com> <CA+73ANd32+Bhm4BBwtZSEA3-cU0R-vMBvU-uk3KieTnPG3pAPA@mail.gmail.com> <CAH2-Wzm+9tmVqpJWM28P_OEhMj2_ihydyt=rziLV3SDnu3NTTQ@mail.gmail.com> <CA+73ANcmHFY5fejw_6tbXexUAw6OYovab4ou=KYOtd3_qosYPQ@mail.gmail.com> <CAH2-WznvXb2KdDVyrmkOvvTEhonCKs4eSF01WeLLgAnSSkPVSw@mail.gmail.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