Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U9dIi-0000cd-MK for pgsql-bugs@arkaria.postgresql.org; Sun, 24 Feb 2013 15:15:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U9dIh-0000CX-CW for pgsql-bugs@arkaria.postgresql.org; Sun, 24 Feb 2013 15:15:39 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U9dIV-0008UZ-VN for pgsql-bugs@postgresql.org; Sun, 24 Feb 2013 15:15:28 +0000 Received: from mail-out4.uio.no ([2001:700:100:10::15]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U9dIT-0003zg-F8 for pgsql-bugs@postgresql.org; Sun, 24 Feb 2013 15:15:27 +0000 Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out4.uio.no with esmtp (Exim 4.80.1) (envelope-from ) id 1U9dIQ-00070Q-2j; Sun, 24 Feb 2013 16:15:22 +0100 Received: from cm-84.208.133.67.getinternet.no ([84.208.133.67] helo=[10.1.1.200]) by mail-mx4.uio.no with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) user rafael (Exim 4.80) (envelope-from ) id 1U9dIP-0002I6-JT; Sun, 24 Feb 2013 16:15:22 +0100 Message-ID: <512A2EC8.4070207@usit.uio.no> Date: Sun, 24 Feb 2013 16:16:24 +0100 From: Rafael Martinez Guerrero Organization: University of Oslo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 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 References: In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-UiO-Ratelimit-Test: rcpts/h 2 msgs/h 1 sum rcpts/h 4 sum msgs/h 2 total rcpts 696 max rcpts/h 23 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: DC15206D9141B61429679A11416B317D5C62635D X-UiO-SPAM-Test: remote_host: 84.208.133.67 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 36 max/h 2 blacklist 0 greylist 0 ratelimit 0 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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