From: Alvaro Herrera <alvherre@commandprompt.com>
To: Mr. Dan <bitsandbytes88@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: full vacuum - resources - scaling
Date: Tue, 30 May 2006 10:10:31 -0400
Message-ID: <20060530141031.GA30857@surnet.cl> (raw)
In-Reply-To: <BAY116-F65AAE6BC31AD40D101D58D1920@phx.gbl>
References: <BAY116-F65AAE6BC31AD40D101D58D1920@phx.gbl>
Mr. Dan wrote:
> Hi,
>
> I have noticed that my full vacuum and re-index script is taking a day and
> a half instead of 1/2 day.
> Recently, the size of my database cluster has doubled to 130 GB. Would
> anyone recommend increasing one or more of these to help get my full
> vacuums to run a little faster?
I guess the question is why are you running vacuum full at all. Plain
vacuum should suffice, provided the FSM settings are enough for your
database:
> maxfsmpages 480001 (6 bytes each)
> maxfsmrelations 30000 (70 bytes each)
max_fsm_pages at 480000 are enough to cover 3 GB, if my math is correct.
It may be enough or it may not, depending on the dynamics of your data.
Also with non-full vacuum you may be able to get away with vacuuming
some tables more often.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: alvherre@commandprompt.com, bitsandbytes88@hotmail.com
Subject: Re: full vacuum - resources - scaling
In-Reply-To: <20060530141031.GA30857@surnet.cl>
References: <BAY116-F65AAE6BC31AD40D101D58D1920@phx.gbl> <20060530141031.GA30857@surnet.cl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox