Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id B8B0D9FB31D for ; Mon, 16 Jul 2007 05:01:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 66879-04 for ; Mon, 16 Jul 2007 05:01:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id F180C9FB1E5 for ; Mon, 16 Jul 2007 05:01:39 -0300 (ADT) thread-index: AcfHf4zc/YCoABjRRNS6HseEW8Seag== Received: from [192.168.0.5] ([85.211.164.164]) by mail01.enterprisedb.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 16 Jul 2007 04:01:42 -0400 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073 Subject: Re: Estimating WAL volume From: "Simon Riggs" To: "Greg Smith" Cc: In-Reply-To: References: Content-Type: text/plain; charset="iso-8859-1" Date: Mon, 16 Jul 2007 09:02:08 +0100 Message-ID: <1184572928.5125.4.camel@ebony.site> MIME-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Jul 2007 08:01:43.0140 (UTC) FILETIME=[8C442A40:01C7C77F] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/178 X-Sequence-Number: 25862 On Wed, 2007-07-11 at 23:10 -0400, Greg Smith wrote: > All this talk of WAL writing lately has me wondering something I haven't > spent enough time looking at the source to figure out myself this > week...any good rules of thumb out there for estimating WAL volume? I'm > used to just measuring it via benchmarking but it strikes me a formula > would be nice to have for pre-planning. > > For example, if I have a table where a typical row is X bytes wide, and > I'm updating Y of those per second, what's the expected write rate of WAL > volume? Some % of those writes are going to be full pages; what's > typical? How much does the number and complexity of indexes factor into > things--just add the width of the index in bytes to the size of the > record, or is it worse than that? I published an analysis of WAL traffic from Greg Stark earlier, based upon xlogdump. http://archives.postgresql.org/pgsql-hackers/2007-03/msg01589.php Other details of WAL volumes are in the code. Further analysis would be welcome, to assist discussions of where to optimize next. -- Simon Riggs EnterpriseDB http://www.enterprisedb.com