pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Creager <Robert_Creager@LogicalChaos.org>
To: Matthew T. O'Connor <matthew@zeut.net>
Cc: PGPerformance <pgsql-performance@postgresql.org>
Subject: Re: Huge performance problem between 7.4.1 and 8.0.3 - CS
Date: Sun, 17 Jul 2005 22:10:50 -0600
Message-ID: <20050717221050.7c4ac241@thunder.logicalchaos.org> (raw)
In-Reply-To: <42DB2684.9020706@zeut.net>
References: <20050717213416.59dcb52e@thunder.logicalchaos.org>
	<42DB2684.9020706@zeut.net>


I am, and it is.  It's ANALYZING and VACUUM'ing tables every interval (5 minutes
- 8.0.3).  Right now, for that last 4 hours, I'm not VACUUMing the 7.4.1
database and it's still clicking along at < .2 second queries.  Last year
(7.4.1), I noticed that it took about a week of heavy activity (for this DB)
before I'd really need a vacuum.  That's when I put in the 5 min cron.

When I first switched over to 8.0.3, I was still running the cron vacuum.  I got
into big trouble when I had vacuum's backed up for 6 hours.  That's when I
started noticing the query problem, and the CS numbers being high.  7.4.1
vacuums every 5 minutes always take < 30 seconds (when I'm watching).

Cheers,
Rob

When grilled further on (Sun, 17 Jul 2005 23:48:20 -0400),
"Matthew T. O'Connor" <matthew@zeut.net> confessed:

> Robert Creager wrote:
> 
> >For 8.03, pg_autovacuum is running.  On 7.4.1, I set up a cron job to vacuum
> >analyze every 5 minutes.
> >  
> >
> 
> Are you sure that pg_autovacuum is doing it's job?  Meaning are you sure 
> it's vacuuming as often as needed?  Try to run it with -d2 or so and 
> make sure that it is actually doing the vacuuming needed.


-- 
 22:04:10 up 4 days,  1:39,  8 users,  load average: 0.15, 0.15, 0.12
Linux 2.6.5-02 #8 SMP Mon Jul 12 21:34:44 MDT 2004

view thread (30+ messages)  latest in thread

Message-ID: <20050717221050.7c4ac241@thunder.logicalchaos.org>
Permalink:  ../20050717221050.7c4ac241@thunder.logicalchaos.org/
Also on:    postgresql.org/message-id/20050717221050.7c4ac241@thunder.logicalchaos.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: Robert_Creager@LogicalChaos.org, matthew@zeut.net
  Subject: Re: Huge performance problem between 7.4.1 and 8.0.3 - CS
  In-Reply-To: <20050717221050.7c4ac241@thunder.logicalchaos.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