pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Madison Kelly <linux@alteeve.com>
Cc: Rosser Schwarz <rosser.schwarz@gmail.com>
Cc: Brad Nicholson <bnichols@ca.afilias.info>
Cc: Gary Doades <gpd@gpdnet.co.uk>
Cc: pgsql-performance@postgresql.org
Subject: Re: DB is slow until DB is reloaded
Date: Mon, 04 Jan 2010 17:10:47 -0800
Message-ID: <4B429197.7010801@pinpointresearch.com> (raw)
In-Reply-To: <4B428917.3020305@alteeve.com>
References: <4B423D22.7040803@alteeve.com>
	<4B424215.70605@pinpointresearch.com>
	<4B424FF6.40207@alteeve.com>
	<4B425222.7070905@gpdnet.co.uk>
	<4B425555.6020709@alteeve.com>
	<1262638856.29852.4.camel@bnicholson-desktop>
	<4B425E93.1050207@alteeve.com>
	<4B426359.9040601@pinpointresearch.com>
	<4B426438.40109@alteeve.com>
	<37d451f71001041406i3f5d8d5fte8a29cfbc06998c9@mail.gmail.com>
	<4B428917.3020305@alteeve.com>

Madison Kelly wrote:
>
> You are right, autovacuum is not running after all. From your comment, 
> I am wondering if you'd recommend I turn it on or not?...
>
>
I see you are considering an upgrade but FWIW on your 8.1 instance, my 
remaining 8.1 server has been running for years with it on. Read up on 
it at:
http://www.postgresql.org/docs/8.1/static/maintenance.html#AUTOVACUUM

Basically you need to turn on some stats stuff so autovacuum can 
determine when to run (in postgresql.conf):
stats_start_collector = on
stats_row_level = on

And you need to enable autovacuum (in postgresql.conf):
autovacuum = on
autovacuum_naptime = 300                # time between autovacuum runs, 
in secs

Then you can tune it if you need to but at least it will be looking for 
things that are vacuumworthy every 5 minutes.

Cheers,
Steve




view thread (25+ messages)  latest in thread

Message-ID: <4B429197.7010801@pinpointresearch.com>
Permalink:  ../4B429197.7010801@pinpointresearch.com/
Also on:    postgresql.org/message-id/4B429197.7010801@pinpointresearch.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: scrawford@pinpointresearch.com, linux@alteeve.com, rosser.schwarz@gmail.com, bnichols@ca.afilias.info, gpd@gpdnet.co.uk
  Subject: Re: DB is slow until DB is reloaded
  In-Reply-To: <4B429197.7010801@pinpointresearch.com>

* 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