pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndquadrant.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Wrong docs on wal_buffers?
Date: Thu, 06 Jan 2011 23:37:45 -0500
Message-ID: <4D269899.6040901@2ndquadrant.com> (raw)
In-Reply-To: <4D2610F3.8070407@agliodbs.com>
References: <4D24D7DE.6020507@agliodbs.com>
	<AANLkTi=YLCEGcwa-9hFYykRgTfUVDhZrwNGo7qaJZnRC@mail.gmail.com>
	<4D2610F3.8070407@agliodbs.com>

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




view thread (11+ messages)  latest in thread

Message-ID: <4D269899.6040901@2ndquadrant.com>
Permalink:  ../4D269899.6040901@2ndquadrant.com/
Also on:    postgresql.org/message-id/4D269899.6040901@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: greg@2ndquadrant.com, josh@agliodbs.com, jeff.janes@gmail.com
  Subject: Re: Wrong docs on wal_buffers?
  In-Reply-To: <4D269899.6040901@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox