Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UASpZ-00011Z-Il for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Feb 2013 22:17:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UASpZ-0005yJ-1I for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Feb 2013 22:17:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UASpX-0005xJ-OR for pgsql-bugs@postgresql.org; Tue, 26 Feb 2013 22:16:59 +0000 Received: from smtp.01.com ([199.36.142.181]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UASpU-0001zw-SI for pgsql-bugs@postgresql.org; Tue, 26 Feb 2013 22:16:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 0DC11390049; Tue, 26 Feb 2013 16:16:55 -0600 (CST) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zsyw4+PZabqZ; Tue, 26 Feb 2013 16:16:54 -0600 (CST) Received: from smtp.01.com (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id D628439018B; Tue, 26 Feb 2013 16:16:54 -0600 (CST) Received: from [10.10.10.5] (8.202-62-69.ftth.swbr.surewest.net [69.62.202.8]) by smtp-out-2.01.com (Postfix) with ESMTPSA id 864A3390049; Tue, 26 Feb 2013 16:16:54 -0600 (CST) Message-ID: <512D3455.5040507@pgexperts.com> Date: Tue, 26 Feb 2013 14:16:53 -0800 From: Jeff Frost Organization: PostgresSQL Experts, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Jeff Janes CC: Rafael Martinez Guerrero , "pgsql-bugs@postgresql.org" Subject: Re: BUG #7902: lazy cleanup of extraneous WAL files can cause out of disk issues References: <512A2EC8.4070207@usit.uio.no> <55009DEA-C314-4F0A-9A66-D133F63C47FB@pgexperts.com> In-Reply-To: X-Enigmail-Version: 1.5.0 Content-Type: multipart/alternative; boundary="------------080204000705010009090500" X-Pg-Spam-Score: -1.9 (-) 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 This is a multi-part message in MIME format. --------------080204000705010009090500 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 02/26/13 09:08, Jeff Janes wrote: > > They're all number of xlog based and the first one doesn't remove any, > that's not surprising, > > > What was the state of the pg_xlog directory before you started the test? If > it were not full up to check_point segments * 2, (which is likely was not, > since populating pgbench_accounts avoids WAL when not archiving), this I > agree it is not surprising. It always start at around 258 files. The total WAL volume during the 10min pgbench run as evidenced by enabling an archive command that just touches the filename is 1,972 WAL files archived, or 31G. So, it is cleaning up or recycling about 9G, unfortunately, that's just 2G too few for a 20G filesystem. -- Jeff Frost CTO, PostgreSQL Experts, Inc. Phone: 1-888-PG-EXPRT x506 FAX: 415-762-5122 http://www.pgexperts.com/ --------------080204000705010009090500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 02/26/13 09:08, Jeff Janes wrote:

They're all number of xlog based and the first one doesn't remove any, that's not surprising,

What was the state of the pg_xlog directory before you started the test?  If it were not full up to check_point segments * 2, (which is likely was not, since populating pgbench_accounts avoids WAL when not archiving), this I agree it is not surprising.

It always start at around 258 files.

The total WAL volume during the 10min pgbench run as evidenced by enabling an archive command that just touches the filename is 1,972 WAL files archived, or 31G.  So, it is cleaning up or recycling about 9G, unfortunately, that's just 2G too few for a 20G filesystem.



-- 
Jeff Frost <jeff@pgexperts.com>
CTO, PostgreSQL Experts, Inc.
Phone: 1-888-PG-EXPRT x506
FAX: 415-762-5122
http://www.pgexperts.com/ 
--------------080204000705010009090500--