Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 71A531337B71 for ; Fri, 7 Jan 2011 00:38:07 -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 79415-01 for ; Fri, 7 Jan 2011 04:38:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mail.postgresql.org (Postfix) with ESMTP id D89071337B6E for ; Fri, 7 Jan 2011 00:37:59 -0400 (AST) Received: from [192.168.1.6] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LyBCX-1QMafX2Yxp-015ayU; Fri, 07 Jan 2011 05:37:47 +0100 Message-ID: <4D269899.6040901@2ndquadrant.com> Date: Thu, 06 Jan 2011 23:37:45 -0500 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Josh Berkus CC: Jeff Janes , pgsql-performance@postgresql.org Subject: Re: Wrong docs on wal_buffers? References: <4D24D7DE.6020507@agliodbs.com> <4D2610F3.8070407@agliodbs.com> In-Reply-To: <4D2610F3.8070407@agliodbs.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:XL8rZki9lcpT/jlMS7bvZzmDHlvheXPLyN/CLr4yu8J v/g0Fcfbp3T8B4U43ZcwS3bertXabUZNQZwlkl+h2ROuyLPylP +/AxE0I9cPbANdLb99RWS1l4MJkWm6DvRgSqp/kB37LQCvxglg CPH5fTXNbl9jqSEIAfb6BWcJ+3TuQSkVQzxRVdJmt1Bm1Cljxu Ae+Qt2sOtN3cRup0nZvj3vW02O7y1MbqGJhyeIj5JQ= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201101/35 X-Sequence-Number: 41822 Josh Berkus wrote: > We talked about bumping it to 512kB or 1MB for 9.1. Did that get in? > Do I need to write that patch? > If it defaulted to 3% of shared_buffers, min 64K & max 16MB for the auto setting, it would for the most part become an autotuned parameter. That would make it 0.75 to 1MB at the standard anemic Linux default kernel parameters. Maybe more than some would like, but dropping shared_buffers from 24MB to 23MB to keep this from being ridiculously undersized is probably a win. That percentage would reach 16MB by the time shared_buffers was increased to 533MB, which also seems about right to me. On a really bad setup (brief pause to flip off Apple) with only 4MB to work with total, you'd end up with wal_buffers between 64 and 128K, so very close to the status quo. Code that up, and we could probably even remove the parameter as a tunable altogether. Very few would see a downside relative to any sensible configuration under the current situation, and many people would notice better automagic performance with one less parameter to tweak. Given the recent investigations about the serious downsides of tiny wal_buffers values on new Linux kernels when using open_datasync, a touch more aggression about this setting seems particularly appropriate to consider now. That's been swapped out as the default, but it's still possible people will switch to it. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services and Support www.2ndQuadrant.us "PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books