From: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | "Sachchida Ojha" <sojha(at)secure-elements(dot)com> |
Cc: | "Michael Glaesemann" <grzm(at)seespotcode(dot)net>, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Autovacuum is running forever |
Date: | 2007-08-21 22:01:23 |
Message-ID: | dcc563d10708211501p559b73d3q123a35bdbce1b68d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On 8/21/07, Sachchida Ojha <sojha(at)secure-elements(dot)com> wrote:
> vacuum_cost_delay = 200
> vacuum_cost_page_hit = 1
> vacuum_cost_page_miss = 10
> vacuum_cost_page_dirty = 20
> vacuum_cost_limit = 200
>
> autovacuum = on
> autovacuum_naptime = 3600
>
> maintenance_work_mem = 256MB # min 1024, size
That's a REALLY long naptime. Better to let autovacuum decide if you
need vacuum more often, and just increase the vacuum_cost_delay and
decrease vacuum_cost_limit so that vacuum doesn't slam your I/O.
Maintenance work mem on the other hand is plenty big. and your fsm
settings seem large enough to handle your freed space.
But making vacuum wait so long between runs may be slowly bloating
your data store, and then vacuum becomes more and more expensive
because it takes longer and longer to run.
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2007-08-21 22:03:25 | Re: Autovacuum is running forever |
Previous Message | Alvaro Herrera | 2007-08-21 21:54:41 | Re: Autovacuum is running forever |