Re: Vacuum and FSM page size

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Vacuum and FSM page size
Дата
Msg-id dcc563d10801271554j52c665a4oc851d7fa7f2a5ead@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Vacuum and FSM page size  ("Thomas Lozza" <thomas.lozza@nexustelecom.com>)
Список pgsql-performance
On Jan 27, 2008 5:01 PM, Thomas Lozza <thomas.lozza@nexustelecom.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

В списке pgsql-performance по дате отправления:

Предыдущее
От: "Thomas Lozza"
Дата:
Сообщение: Re: Vacuum and FSM page size
Следующее
От: Greg Smith
Дата:
Сообщение: Re: Postgres 8.2 memory weirdness