pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: dforums <dforums@vieonet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Vacuum settings
Date: Mon, 21 Apr 2008 11:03:37 -0400
Message-ID: <20080421150336.GJ6520@alvh.no-ip.org> (raw)
In-Reply-To: <480B8205.8070209@vieonet.com>
References: <48032021.90704@gmail.com>
	<Pine.GSO.4.64.0804141132580.3587@westnet.com>
	<48047143.5000107@gmail.com>
	<480B8205.8070209@vieonet.com>

dforums wrote:
> Hello,
>
> I need wo advice on vacuum settings.
>
> I have a quad core X5355 @ 2.66GHz with 8 Go of memory
>
> 1Q) Why autovaccum  does not work, I have set the value to on in  
> postgresql.conf but when the server start it's still off !!!!

You need to turn stats_row_level on too.

> # - Cost-Based Vacuum Delay -
>
> vacuum_cost_delay = 5                   # 0-1000 milliseconds
> vacuum_cost_page_hit = 1000             # 0-10000 credits
> vacuum_cost_page_miss = 1000            # 0-10000 credits
> vacuum_cost_page_dirty = 120            # 0-10000 credits
> vacuum_cost_limit = 20          # 0-10000 credits

The cost are all too high and the limit too low.  I suggest resetting to
the default values, and figuring out a reasonable delay limit (your
current 5ms value seems a bit too low, but I think in most cases 10ms is
the practical limit due to sleep granularity in the kernel.  In any
case, since the other values are all wrong I suggest just setting it to
10ms and seeing what happens).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (3+ messages)  latest in thread

Message-ID: <20080421150336.GJ6520@alvh.no-ip.org>
Permalink:  ../20080421150336.GJ6520@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20080421150336.GJ6520@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, dforums@vieonet.com
  Subject: Re: Vacuum settings
  In-Reply-To: <20080421150336.GJ6520@alvh.no-ip.org>
  References: <48032021.90704@gmail.com> <Pine.GSO.4.64.0804141132580.3587@westnet.com> <48047143.5000107@gmail.com> <480B8205.8070209@vieonet.com> <20080421150336.GJ6520@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