Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id DCD93133616B for ; Sat, 15 Jan 2011 18:34:31 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 95983-07 for ; Sat, 15 Jan 2011 22:34:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148135.authsmtp.net (outmail148135.authsmtp.net [62.13.148.135]) by mail.postgresql.org (Postfix) with ESMTP id 247DC1337B8C for ; Sat, 15 Jan 2011 18:34:23 -0400 (AST) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt8.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p0FMYK9O056065; Sat, 15 Jan 2011 22:34:20 GMT Received: from Sidney-Stratton.local (dsl081-245-111.sfo1.dsl.speakeasy.net [64.81.245.111]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p0FMYGai067240; Sat, 15 Jan 2011 22:34:17 GMT Message-ID: <4D3220E3.20804@agliodbs.com> Date: Sat, 15 Jan 2011 14:34:11 -0800 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Greg Smith CC: Tom Lane , Robert Haas , Magnus Hagander , pgsql-hackers@postgresql.org Subject: Re: auto-sizing wal_buffers References: <20767.1294964709@sss.pgh.pa.us> <4D314406.3000703@2ndquadrant.com> In-Reply-To: <4D314406.3000703@2ndquadrant.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: 97614fed-20f7-11e0-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQM c1ADcx1xOVtbHwkA AnYJWV5XVFdwUS1z bxRZbBtfZk9QXgRr T0pMQFdNFEsoAWp8 b2lPCxl0cAdCeDB5 Y0FnEHlcWkV+IxMp X0xUQ2obZGY1aH0X UBJRagNUcgFMeh8X Ylh8AT1vNG8XDQIR NCweBQsEdTxCNCMQ WQAfLFQdCVkCGgk2 Wh4MEC80dQDI X-Authentic-SMTP: 61633136333939.1015:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201101/1305 X-Sequence-Number: 179142 On 1/14/11 10:51 PM, Greg Smith wrote: > > ! Since the data is written out to disk at every transaction > commit, > ! the setting many only need to be be large enough to hold the > amount > ! of WAL data generated by one typical transaction. Larger values, > ! typically at least a few megabytes, can improve write performance > ! on a busy server where many clients are committing at once. > ! Extremely large settings are unlikely to provide additional > benefit. I think we can be more specific on that last sentence; is there even any *theoretical* benefit to settings above 16MB, the size of a WAL segment? Certainly there have been no test results to show any. If we don't know, keep it vague, but otherwise I suggest: "Settings larger than the size of a single WAL segment (16MB by default) are unlikely to produce any benefit." -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com