On Wed, Aug 13, 2014 at 5:28 PM, Marti Raudsepp <marti@juffo.org> wrote:
On Wed, Aug 13, 2014 at 9:44 AM, Albe Laurenz <laurenz.albe@wien.gv.at> wrote: > Set wal_buffers to 16MB so that a whole WAL segment will fit.
No need, wal_buffers is automatically tuned now. If your shared_buffers is 512MB or larger, wal_buffers will be 16MB.
Thanks everyone,
The settings that seem to work well for our workload/hw are
shared_buffers = 2GB
wal_buffers = 16MB
effective_cache_size = 100GB
checkpoint_segments = 32
* With shared_buffers set to default and wal_buffers set to 16MB - bgwriter stats indicates most writes were due to backend_buffers and not checkpoint buffers
* With shared_buffers set to 2GB and wal_buffers set to 16MB - bgwriter stats indicates most writes were due to checkpoint_buffers and not backend buffers
* Increasing wal_buffers beyond 16mb did not show any improvements