pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Joe Lester <joe_lester@sweetwater.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Getting Slow
Date: Thu, 7 Jun 2007 14:58:54 -0400
Message-ID: <20070607185854.GC21004@alvh.no-ip.org> (raw)
In-Reply-To: <14D118F0-20F6-4096-93D7-E6CB2893E895@sweetwater.com>
References: <14D118F0-20F6-4096-93D7-E6CB2893E895@sweetwater.com>

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                        http://www.advogato.org/person/alvherre
"La tristeza es un muro entre dos jardines" (Khalil Gibran)



view thread (7+ messages)  latest in thread

Message-ID: <20070607185854.GC21004@alvh.no-ip.org>
Permalink:  ../20070607185854.GC21004@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20070607185854.GC21004@alvh.no-ip.org

 · 

reply

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-performance@postgresql.org
  Cc: alvherre@commandprompt.com, joe_lester@sweetwater.com
  Subject: Re: Getting Slow
  In-Reply-To: <20070607185854.GC21004@alvh.no-ip.org>
  References: <14D118F0-20F6-4096-93D7-E6CB2893E895@sweetwater.com> <20070607185854.GC21004@alvh.no-ip.org>

* 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