pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: Scott Marlowe <smarlowe@qwest.net>
Subject: Re: running only pg_autovacuum for one week
Date: Mon, 02 Aug 2004 18:39:01 +0200
Message-ID: <410E6E25.9010108@bigfoot.com> (raw)
In-Reply-To: <1091463170.27166.35.camel@localhost.localdomain>
References: <410E3CCA.9090805@bigfoot.com>
	<1091463170.27166.35.camel@localhost.localdomain>

Scott Marlowe wrote:
 > On Mon, 2004-08-02 at 07:08, Gaetano Mendola wrote:
 >
 >>-----BEGIN PGP SIGNED MESSAGE-----
 >>Hash: SHA1
 >>
 >>Hi all,
 >>I did the experiment of running only the autovacuum for one week without
 >>running my daily autovacuum full and reindex on heavy updated/inserted
 >>tables.
 >>Yesterday I reenabled the vacuum full and reindex and, as you can see
 >>from the attachment, I recover 600MB of wasted space.
 >
 >
 > autovacuum is a daemon.  You don't run it once a week, you set it loose
 > and forget about it.  Unless you're running it then shutting it down,
 > running once a week is unnecessary.

Sorry, I meant that I had running "only" the pg_autovacuum for the entire week,
without run also my vacuum full + reindex once a day. I was only stopping it and
rerunning for logrotation purpose.
Analyzing the graph on Wednedsay I had a few of processes in "idle in transaction"
state and as you can see the graph had a big ramp and that space was not reclamed
till this morning :-(

 > Also, what are you fsm settings in the postgresql.conf file?

At the end of my autovacuum full I have:

INFO:  free space map: 603 relations, 38202 pages stored; 40592 total pages needed
DETAIL:  Allocated FSM size: 1000 relations + 2000000 pages = 11780 kB shared memory.


So I think that I'm not reaching the limits.


As explained in another thread untill I can not set the "threasholds" per table
the autovacuum is useless ( milions rows tables with hundred of insert per day ).


Regards
Gaetano Mendola



view thread (3+ messages)

Message-ID: <410E6E25.9010108@bigfoot.com>
Permalink:  ../410E6E25.9010108@bigfoot.com/
Also on:    postgresql.org/message-id/410E6E25.9010108@bigfoot.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 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-admin@postgresql.org
  Cc: mendola@bigfoot.com, smarlowe@qwest.net
  Subject: Re: running only pg_autovacuum for one week
  In-Reply-To: <410E6E25.9010108@bigfoot.com>
  References: <410E3CCA.9090805@bigfoot.com> <1091463170.27166.35.camel@localhost.localdomain> <410E6E25.9010108@bigfoot.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