Skip site navigation (1) Skip section navigation (2)

Re: Getting Slow

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Joe Lester <joe_lester(at)sweetwater(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Getting Slow
Date: 2007-06-07 18:58:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Joe Lester wrote:

> max_fsm_pages = 150000

This may be a bit too low -- it's just a little more than 1 GB, which
means it might fail to keep track of all your tables (or it may not, if
you don't have many updates).

> autovacuum_naptime = 60
> autovacuum_vacuum_threshold = 150
> autovacuum_vacuum_scale_factor = 0.00000001
> autovacuum_analyze_scale_factor = 0.00000001

The scale factors seems awfully low.  How about 0.01 instead and see if
you avoid vacuuming all your tables with every iteration ... have you
noticed how much work autovacuum is really doing?  It may be too much.

Also if autovacuum is eating all your I/O you may want to look into
throttling it back a bit by setting autovacuum_vacuum_cost_delay to a
non-zero value.

Alvaro Herrera              
"La tristeza es un muro entre dos jardines" (Khalil Gibran)

In response to


pgsql-performance by date

Next:From: Andrew SullivanDate: 2007-06-07 19:20:25
Subject: Re: reclaiming disk space after major updates
Previous:From: Steinar H. GundersonDate: 2007-06-07 18:50:19
Subject: Re: Getting Slow

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group