pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gael Le Mignot <gael@pilotsystems.net>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: Gael Le Mignot <gael@pilotsystems.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Memory usage of auto-vacuum
Date: Sat, 09 Jul 2011 11:27:00 +0200
Message-ID: <plop87d3hjn6sb.fsf@aoskar.kilobug.org> (raw)
In-Reply-To: <1310202377.2101.15.camel@laptop>
References: <plop87tyavncer.fsf@aoskar.kilobug.org>
	<1310200383.2101.8.camel@laptop>
	<plop87liw7n8t0.fsf@aoskar.kilobug.org>
	<1310201594.2101.12.camel@laptop>
	<plop87hb6vn803.fsf@aoskar.kilobug.org>
	<1310202377.2101.15.camel@laptop>

Hello Guillaume!

Sat, 09 Jul 2011 11:06:16 +0200, you wrote: 

 > On Sat, 2011-07-09 at 11:00 +0200, Gael Le Mignot wrote:
 >> Hello Guillaume!
 >> 
 >> Sat, 09 Jul 2011 10:53:14 +0200, you wrote: 
 >> 
 >> > I don't quite understand how you can get up to 1GB used by your process.
 >> > According to your configuration, and unless I'm wrong, it shouldn't take
 >> > more than 40MB. Perhaps a bit more, but not 1GB. So, how did you find
 >> > this number?
 >> 
 >> Looking at  "top" we  saw the postgres  process growing and  growing and
 >> then shrinking  back, and doing  a "select * from  pg_stat_activity;" in
 >> parallel of the growing we found only the "vacuum analyze" query running. 
 >> 

 > There is not only one postgres process. So you first need to be sure
 > that it's the one that executes the autovacuum.

Shouldn't "pg_stat_activity" contain the current jobs of all the processes ?

 >> But maybe  we drawn the conclusion  too quickly, I'll  try disabling the
 >> auto vacuum to see if we really get rid of the problem doing it.
 >> 

 > Disabling the autovacuum is usually a bad idea. You'll have to execute
 > VACUUM/ANALYZE via cron, which could get hard to configure.

Oh, yes, sure, I meant as a test  to know if it's the vacuum or not, not
to definitely disable it.

 > BTW, what's your PostgreSQL release? I assume at least 8.3 since you're
 > using FTS?

It's 8.4 from Debian Squeeze.

-- 
Gaël Le Mignot - gael@pilotsystems.net
Pilot Systems - 9, rue Desargues - 75011 Paris
Tel : +33 1 44 53 05 55 - www.pilotsystems.net
Gérez vos contacts et vos newsletters : www.cockpit-mailing.com



view thread (13+ messages)  latest in thread

Message-ID: <plop87d3hjn6sb.fsf@aoskar.kilobug.org>
Permalink:  ../plop87d3hjn6sb.fsf@aoskar.kilobug.org/
Also on:    postgresql.org/message-id/plop87d3hjn6sb.fsf@aoskar.kilobug.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: gael@pilotsystems.net, guillaume@lelarge.info
  Subject: Re: Memory usage of auto-vacuum
  In-Reply-To: <plop87d3hjn6sb.fsf@aoskar.kilobug.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