From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Thierry Husson <thusson@informiciel.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15840: Vacuum does not work after database stopped for wraparound protection. Database seems unrepearable.
Date: Fri, 7 Jun 2019 20:25:42 -0400
Message-ID: <20190608002542.GA4898@alvherre.pgsql> (raw)
In-Reply-To: <20190607174952.Horde.LmbDAeB4CYQATbr-VY29_ef@webmail.iciel.com>
On 2019-Jun-07, Thierry Husson wrote:
> Yes autovacuum is enabled. Aggressiveness was effectively a recent problem I
> had and putting its max_worker to 8 wasn't a solution, there were all busy
> 24/7 and I had to do a daily script to help it. The solution was to push
> vacuum_cost_limit to 2000, since then it works like a charm.
Note the I/O cost balancing thing, which seems to bite many people: if
you raise max_workers without changing cost_delay or cost_limit, it
doesn't have much of an effect, because each worker goes slower to
accomodate. Raising the cost limit (or lowering the cost delay) does
have a useful impact. In pg12 we changed the default cost_delay to 2ms
(from 20ms).
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: alvherre@2ndquadrant.com, thusson@informiciel.com, andres@anarazel.de
Subject: Re: BUG #15840: Vacuum does not work after database stopped for wraparound protection. Database seems unrepearable.
In-Reply-To: <20190608002542.GA4898@alvherre.pgsql>
References: <20190607174952.Horde.LmbDAeB4CYQATbr-VY29_ef@webmail.iciel.com> <20190608002542.GA4898@alvherre.pgsql>
* 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