Re: Vacuum and FSM page size

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Thomas Lozza" <thomas(dot)lozza(at)nexustelecom(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuum and FSM page size
Date: 2008-01-27 23:54:12
Message-ID: dcc563d10801271554j52c665a4oc851d7fa7f2a5ead@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Jan 27, 2008 5:01 PM, Thomas Lozza <thomas(dot)lozza(at)nexustelecom(dot)com> wrote:
> Thanks for the advice.
> I used the default settings before, thought though that vacuum was a bit
> aggressive, ie, using too many resources. Now its taking very long. So
> will have to find reasonable settings in between I guess.
>
> On the other hand, if I keep the fsm_page number high enough, the system
> should be fine with a low number of vacuum cycles, right. As memory is
> not really scarce (16G, 32 bit PG though) an x million fsm_page entry
> should be ok. Any thoughts on that?

The issue you then run into is bloat, where you have a table or index
that is 90% or so empty space, and performance on selects might
suffer, especially on larger tables or indexes.

What often works best is to let autovacuum handle most of your tables,
then schedule individual tables to be vacuumed by cron, setting the
nap time for vacuum at 20 or 30 milliseconds so they don't chew up all
of your I/O

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2008-01-28 00:08:51 Re: Postgres 8.2 memory weirdness
Previous Message Thomas Lozza 2008-01-27 23:01:30 Re: Vacuum and FSM page size