From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Plotkin <richard@richardplotkin.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Disk filling, CPU filling, renegade inserts and deletes?
Date: Wed, 20 Apr 2005 16:51:10 -0400
Message-ID: <4574.1114030270@sss.pgh.pa.us> (raw)
In-Reply-To: <6f4567d4e64297b356e2d71ec392cdae@richardplotkin.com>
References: <6f4567d4e64297b356e2d71ec392cdae@richardplotkin.com>
Richard Plotkin <richard@richardplotkin.com> writes:
> I'm having a pretty serious problem with postgresql's performance.
> Currently, I have a cron task that is set to restart and vacuumdb -faz
> every six hours. If that doesn't happen, the disk goes from 10% full
> to 95% full within 2 days (and it's a 90GB disk...with the database
> being a 2MB download after dump), and the CPU goes from running at
> around a 2% load to a 99+% load right away (the stats look like a
> square wave).
Q: what have you got the FSM parameters set to?
Q: what exactly is bloating? Without knowing which tables or indexes
are growing, it's hard to speculate about the exact causes. Use du and
oid2name, or look at pg_class.relpages after a plain VACUUM.
It's likely that the real answer is "you need to vacuum more often
than every six hours", but I'm trying not to jump to conclusions.
regards, tom lane
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: tgl@sss.pgh.pa.us, richard@richardplotkin.com
Subject: Re: Disk filling, CPU filling, renegade inserts and deletes?
In-Reply-To: <4574.1114030270@sss.pgh.pa.us>
* 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