From: Geoff Parker <geoffparkernews@yahoo.ca>
To: pgsql admin <pgsql-admin@postgresql.org>
Subject: disk usage spike
Date: Mon, 7 Aug 2006 18:27:36 -0700 (PDT)
Message-ID: <20060808012736.20614.qmail@web57211.mail.re3.yahoo.com> (raw)
I have a database with about 155GB of binary data in large objects and 15GB of data in other tables. In compressed form, it consumes about 60GB on disk. On friday, the amount of disk usage increased to 240GB (over a period of 5 minutes), stayed at 240GB for 2 days, and then returned to 60GB (again over a period of about 5 minutes).
What would cause such a spike in disk usage? And why would it stay at such a high level for 2 days?
This is postgresql 8.1.4 on a slightly modified RHEL4 system (2.6.17 kernel).
At the time the spike occurred (about 2pm), I may have been running some simple queries against various tables to determine usage statistics (eg, how many rows in table a, sum of column b in table c, etc (maximum of 100,000 rows in the tables, <10 columns), no nasty joins or anything). Also, I may have extracted a couple of large objects in full (not more than 200MB).
Otherwise, the database processes a few (< 20) small (< 1k data) inserts/updates/deletes per minute. This would have been the only traffic to the database after friday afternoon when I went home.
Autovacuum is turned on and the system had finished importing a large amount of data (50GB) earlier (4am) that morning. Is it possible the spike was caused by autovacuum re-indexing the pg_largeobject table?
Thanks,
Geoff.
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: geoffparkernews@yahoo.ca
Subject: Re: disk usage spike
In-Reply-To: <20060808012736.20614.qmail@web57211.mail.re3.yahoo.com>
References: <20060808012736.20614.qmail@web57211.mail.re3.yahoo.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