Re: slowness what only full vacuum can solve - Mailing list pgsql-general

From François Beausoleil
Subject Re: slowness what only full vacuum can solve
Date
Msg-id 108CAA6A-212E-48F6-A65A-87F369234104@teksol.info
Whole thread Raw
In response to slowness what only full vacuum can solve  (Laszlo Fogas <laszlo@falconsocial.com>)
List pgsql-general
Le 2012-08-10 à 07:53, Laszlo Fogas a écrit :
> We are running Postgres 8.3 on our production servers on Amazon EC2.
>
> We have a reoccurring problem of slowness initially in every 2 months, after enabling autovacuum every 6 months what
onlyfull vacuum can solve. It's kind of a problem as it requires 2hrs downtime and we want to avoid that. What we are
doingnow is moving to Postgres 9.1 as a desperate measure, but we would like to understand better the root cause of the
problem.

The usual solution is to run autovacuum *more* frequently, not less. It's not perfectly clear, but you say "after
enablingautovacuum every 6 months". If that's the case, then it's much too long. autovacuum should be running hourly,
ifnot more often. 

http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server#autovacuum_max_fsm_pages.2C_max_fsm_relations talks about
runningmore frequently. 

Hope that helps!
François Beausoleil

pgsql-general by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: slowness what only full vacuum can solve
Next
From: Brian McNally
Date:
Subject: Re: Problem running "ALTER TABLE...", ALTER TABLE waiting