pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rafael Martinez Guerrero <r.m.guerrero@usit.uio.no>
To: jeff@pgexperts.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7902: lazy cleanup of extraneous WAL files can cause out of disk issues
Date: Sun, 24 Feb 2013 16:16:24 +0100
Message-ID: <512A2EC8.4070207@usit.uio.no> (raw)
In-Reply-To: <E1U91WW-0006rq-82@wrigleys.postgresql.org>
References: <E1U91WW-0006rq-82@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 02/22/2013 11:55 PM, jeff@pgexperts.com wrote:
> 
> While doing acceptance testing on a new Ubuntu 12.04 PostgreSQL server
> running 9.2.3, we set checkpoint_segments = 128,
> checkpoint_completion_target = 0.9 and placed pg_xlog on a separate 20G
> partition. Also, archive_mode = off on this system.
> 
> According to the docs, you would expect the system to attempt to keep the
> WAL files down close to 3 * checkpoint_segments + 1.  Unfortunately, this
> does not appear to be the case because a pgbench run would run the pg_xlog
> partition out of space.
> 
[................]

Hello Jeff

We reported this back in 2011, but we did not get to any conclusion:
http://www.postgresql.org/message-id/4DE89072.7070305@usit.uio.no

In our case, we had this problem when creating a GIN index.

I think the problem has something to do with checkpoints, I think the
number of WAL files will grow beyond the limit defined because the
system can not be finish with checkpoints. A good start to try to
explain what it is happening would be to try to identify or describe the
situations where checkpoints can take very long to complete or fail
altogether.

We are interested in this subject because we have had this problem a few
times. But we have not been able to identify the reason that triggers this.

regards,
-- 
Rafael Martinez Guerrero
Center for Information Technology
University of Oslo, Norway

PGP Public Key: http://folk.uio.no/rafael/


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (8+ messages)  latest in thread

Message-ID: <512A2EC8.4070207@usit.uio.no>
Permalink:  ../512A2EC8.4070207@usit.uio.no/
Also on:    postgresql.org/message-id/512A2EC8.4070207@usit.uio.no

 · 

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 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-bugs@postgresql.org
  Cc: r.m.guerrero@usit.uio.no, jeff@pgexperts.com
  Subject: Re: BUG #7902: lazy cleanup of extraneous WAL files can cause out of disk issues
  In-Reply-To: <512A2EC8.4070207@usit.uio.no>
  References: <E1U91WW-0006rq-82@wrigleys.postgresql.org> <512A2EC8.4070207@usit.uio.no>

* 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