Re: Vacuum full - disk space eaten by WAL logfiles

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Lee Wu" <Lwu(at)mxlogic(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Vacuum full - disk space eaten by WAL logfiles
Date: 2005-01-10 21:26:52
Message-ID: 3250.1105392412@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Lee Wu" <Lwu(at)mxlogic(dot)com> writes:
> When we do weekly "vacuum full", PG uses all space and causes PG down.

This implies that checkpoints aren't completing for some reason.
If they were, they'd be recycling WAL space.

I'm not aware of any problems in 7.3 that would block a checkpoint
indefinitely, but we have seen cases where it just took too darn long
to do the checkpoint --- implying either a ridiculously large
shared_buffers setting, or a drastic shortage of I/O bandwidth.

You might want to try strace'ing the checkpoint process to see if it
seems to be making progress or not.

Also, are you certain that this is happening during a VACUUM? The
log messages you show refer to COPY commands.

> PostgreSQL 7.3.2 on i686-pc-linux-gnu, compiled by GCC 2.96

Are you aware of the number and significance of post-7.3.2 bug fixes
in the 7.3 branch? You really ought to be on 7.3.8, if you can't afford
to migrate to 7.4 right now.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Lee Wu 2005-01-10 21:52:24 Re: Vacuum full - disk space eaten by WAL logfiles
Previous Message Michael Fuhr 2005-01-10 18:31:11 Re: Limiting user privileges