Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id CB5829FA2A0 for ; Fri, 29 Sep 2006 11:54:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 60643-04 for ; Fri, 29 Sep 2006 11:53:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sand3.gxn.net (sand3.gxn.net [195.147.249.238]) by postgresql.org (Postfix) with ESMTP id 748A19FA13E for ; Fri, 29 Sep 2006 11:53:58 -0300 (ADT) Received: from [62.232.55.86] (helo=[192.168.0.26]) by sand3.gxn.net with esmtp (Exim 4.50) id 1GTJmK-0004a9-Sy; Fri, 29 Sep 2006 15:55:54 +0100 Subject: Re: archive wal's failure and load increase. From: Simon Riggs To: Tom Lane Cc: cedric@dreamgnu.com, pgsql-performance@postgresql.org In-Reply-To: <15270.1159540162@sss.pgh.pa.us> References: <451C2572.20800@dreamgnu.com> <1159527513.2767.296.camel@holly> <15270.1159540162@sss.pgh.pa.us> Content-Type: text/plain Date: Fri, 29 Sep 2006 15:53:40 +0100 Message-Id: <1159541620.2649.10.camel@holly> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.034 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200609/430 X-Sequence-Number: 21116 On Fri, 2006-09-29 at 10:29 -0400, Tom Lane wrote: > Simon Riggs writes: > > We discussed putting PreallocXlogFiles() in bgwriter once before, but I > > think last time we discussed that idea it was rejected, IIRC. > > We already do that: it's called a checkpoint. Yes, but not enough. PreallocXlogFiles() adds only a *single* xlog file, sometimes. On a busy system, that would be used up too quickly to make a difference. After that the effect of adding new files would continue as suggested. If it did add more than one... it might work better for this case. > It's a good thought but I don't think the theory holds water for > explaining Cedric's problem, unless there was *also* some effect > preventing checkpoints from completing ... which would be a much more > serious problem than the archiver failing. Still the best explanation for me. -- Simon Riggs EnterpriseDB http://www.enterprisedb.com