From: Peter Geoghegan <pg@bowt.ie>
To: Radoslav Nedyalkov <rnedyalkov@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: create index insist on 2 workers only
Date: Fri, 24 Apr 2020 19:03:20 -0700
Message-ID: <CAH2-WznLai5oddawf7tdqGo_5tZa_Z2DPwfsTLCjMgRNmGfDoQ@mail.gmail.com> (raw)
In-Reply-To: <CANhtRiYkUTuHXDVGbTaGnVqNHTohqHtj2FMhDeaABT1Sz1Z_jg@mail.gmail.com>
References: <CANhtRiYkUTuHXDVGbTaGnVqNHTohqHtj2FMhDeaABT1Sz1Z_jg@mail.gmail.com>
On Fri, Apr 24, 2020 at 7:32 AM Radoslav Nedyalkov <rnedyalkov@gmail.com> wrote:
> We 're rebuilding a big table which has set parallel_workers = 6
> system has
> max_parallel_maintenance_workers | 6 | /var/lib/pgsql/11/data/postgresql.sumup.conf
> max_parallel_workers | 16 | /var/lib/pgsql/11/data/postgresql.sumup.conf
> max_parallel_workers_per_gather | 4 | /var/lib/pgsql/11/data/postgresql.sumup.conf
>
> Also session level on index restore there is
> set max_parallel_maintenance_workers = 6;
>
> Still we get only 2 parallel processes in a free of any other load system.
> It is postgres 11.7
Try increasing maintenance_work_mem from the default of 64MB. MWM
constrains the number of parallel workers used.
--
Peter Geoghegan
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-general@postgresql.org
Cc: pg@bowt.ie, rnedyalkov@gmail.com
Subject: Re: create index insist on 2 workers only
In-Reply-To: <CAH2-WznLai5oddawf7tdqGo_5tZa_Z2DPwfsTLCjMgRNmGfDoQ@mail.gmail.com>
References: <CANhtRiYkUTuHXDVGbTaGnVqNHTohqHtj2FMhDeaABT1Sz1Z_jg@mail.gmail.com> <CAH2-WznLai5oddawf7tdqGo_5tZa_Z2DPwfsTLCjMgRNmGfDoQ@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