Re: Finetuning Autovacuum - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: Finetuning Autovacuum
Date
Msg-id dcc563d11001041901h73d56085h1feb562478ada83@mail.gmail.com
Whole thread Raw
In response to Re: Finetuning Autovacuum  ("Benjamin Krajmalnik" <kraj@illumen.com>)
List pgsql-admin
On Mon, Jan 4, 2010 at 7:10 PM, Benjamin Krajmalnik <kraj@illumen.com> wrote:
> Thanks, Scott.
> I would think that we would reach some sort of steady state, yet the tables appear to continue to grow.

Then it's likely you're blowing out your free space map.

> Looking at the running processes from the server status in pgAdmin, I can see that one table has been under
autovacuumfor 2.5 hours (vacuum/analyze). 

That's autovacuum_vacuum_cost_delay biting you there.  The default
cost delay for regular vacuums is 0 (i.e. no cost delay) while the
default for autovac is something like 20ms, which is pretty high.

Do me a favor, run vacuum verbose on the db as a superuser and post
the last 20 or so lines back...  That'll tell us if you've blown out
the fsm.  Note that since you have recently fixed things up it'll
likely still look good.  Run it each night and email the last 20 lines
to yourself just to see how things are holding up.

pgsql-admin by date:

Previous
From: "Benjamin Krajmalnik"
Date:
Subject: Re: Finetuning Autovacuum
Next
From: Alvaro Herrera
Date:
Subject: Re: Finetuning Autovacuum