From: Jean-Marc Lessard <Jean-Marc.Lessard@ultra-ft.com>
To: Michael Lewis <mlewis@entrata.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: RE: Does the work made by vaccum in the current pass is lost when interrupted?
Date: Fri, 16 Oct 2020 12:05:42 +0000
Message-ID: <QB1PR01MB36334C6FE1F518EDE242867E94030@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CAHOFxGodLAD0cK1dKvMd-01e+ObMAx9U-kGn-COjJfEgkwUpcQ@mail.gmail.com>
References: <QB1PR01MB36331EA1CFAA1D9F05C3D898940B0@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.COM>
<CAHOFxGodLAD0cK1dKvMd-01e+ObMAx9U-kGn-COjJfEgkwUpcQ@mail.gmail.com>
Thank you Michael for your suggestion,
I will reduce vacuum_cost_delay and increasing vacuum_cost_limit to speedup vacuum.
But the I/O system is very solicitated on PROD system and I do not want to impact end user performance.
If aggressive cost_delay and vacuum_cost_limit slow down significatively end user performance, I may have to kill the vacuum, but would like to keep as much vacuum work as possible.
My concern is about the size of the max_dead_tuples buffer determined by the autovacuum_work_mem
* autovacuum_work_mem is currently 1GB (default to maintenance_work_mem)
When I ran a vacuum on a DEV system and it made a single “scanning heap/vacuuming indexes/vacuuming heap” cycle of about 12 hours.
The vacuuming indexes phase is half the total time (6 hrs).
Q1: I guess that if I have to kill the vacuum midway, I will lose all the work it did during the scanning heap step? Right?
Q2: If I reduce autovacuum_work_mem to 32MB, is there any side effect performance on the vacuum?
thanks
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: Jean-Marc.Lessard@ultra-ft.com, mlewis@entrata.com
Subject: Re: Does the work made by vaccum in the current pass is lost when interrupted?
In-Reply-To: <QB1PR01MB36334C6FE1F518EDE242867E94030@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.COM>
References: <QB1PR01MB36331EA1CFAA1D9F05C3D898940B0@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.COM> <CAHOFxGodLAD0cK1dKvMd-01e+ObMAx9U-kGn-COjJfEgkwUpcQ@mail.gmail.com> <QB1PR01MB36334C6FE1F518EDE242867E94030@QB1PR01MB3633.CANPRD01.PROD.OUTLOOK.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