From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Poole <postgresql@simon.themalago.net>
Cc: pgsql-bugs@postgresql.org
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Subject: Re: BUG #5759: Autovacuum cost limit trends to 1, using default config
Date: Fri, 19 Nov 2010 21:28:11 -0500
Message-ID: <28302.1290220091@sss.pgh.pa.us> (raw)
In-Reply-To: <201011191532.oAJFWxR2095324@wwwmaster.postgresql.org>
References: <201011191532.oAJFWxR2095324@wwwmaster.postgresql.org>
"Simon Poole" <postgresql@simon.themalago.net> writes:
> With the default autovacuum settings (3 workers, and default cost_limit of
> 200), all three workers start with a cost-limit of 66 each, but after each
> table is completed, the cost-limit is reduced until they're all running with
> a cost-limit of 1.
Yeah, I was able to reproduce this, more or less. It looks like the
problem is that the cost rebalancing algorithm uses VacuumCostLimit
as an input, and supposes that's constant ... but after the first table
it's actually been reduced by a previous iteration (assuming there's
more than one worker). So you can end up computing a smaller value
on the next round. Lather, rinse, repeat.
Will fix. Thanks for the report!
regards, tom lane
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: tgl@sss.pgh.pa.us, postgresql@simon.themalago.net, alvherre@commandprompt.com
Subject: Re: BUG #5759: Autovacuum cost limit trends to 1, using default config
In-Reply-To: <28302.1290220091@sss.pgh.pa.us>
References: <201011191532.oAJFWxR2095324@wwwmaster.postgresql.org> <28302.1290220091@sss.pgh.pa.us>
* 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