Re: autovacuum default parameters (was Re: 8.2 is 30% better in pgbench than 8.3)

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Gregory Stark <stark(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Jim Nasby <decibel(at)decibel(dot)org>, Josh Berkus <josh(at)agliodbs(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: autovacuum default parameters (was Re: 8.2 is 30% better in pgbench than 8.3)
Date: 2007-07-24 04:32:02
Message-ID: 46A580C2.3090809@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera wrote:
> Gregory Stark wrote:
>> "Alvaro Herrera" <alvherre(at)commandprompt(dot)com> writes:
>>
>>>> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
>>>>> I am taking the liberty to also lower the vacuum and analyze threshold
>>>>> default values to 50, per previous discussion.
>> Did we also reach any consensus about lowering the percentage of dead tuples
>> in a table before we trigger vacuum? I think 20% is way too high and 5% is
>> saner. I actually think it would be better even lower but would be ok with 5%.
>
> We didn't, but while I agree with the idea, I think 5% is too low. I
> don't want autovacuum to get excessively aggressive. Is 10% not enough?

It depends really. 10% on a small table seems like a waste except that
small tables are quick to vacuum. 10% on a table with 20 million rows,
is a lot of dead rows.

Joshua D. Drake

>
> How about the analyze scale factor, should we keep the current 10%? I
> have less of a problem with reducing it further since analyze is cheaper
> than vacuum.
>

--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message ITAGAKI Takahiro 2007-07-24 04:50:58 GucContext of log_autovacuum
Previous Message Alvaro Herrera 2007-07-24 04:14:44 autovacuum default parameters (was Re: 8.2 is 30% better in pgbench than 8.3)