pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Huang, Suya <Suya.Huang@au.experian.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: How to interpret view pg_stat_bgwriter
Date: Wed, 17 Sep 2014 16:40:44 -0400
Message-ID: <5419F1CC.8060309@gmx.net> (raw)
In-Reply-To: <D83E55F5F4D99B4A9B4C4E259E6227CD01EBFA82@AUX1EXC02.apac.experian.local>
References: <D83E55F5F4D99B4A9B4C4E259E6227CD01EBFA82@AUX1EXC02.apac.experian.local>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On 9/16/14 2:42 AM, Huang, Suya wrote:
> # checkpoints_req is much bigger than checkpoints_timed, suggest that I
> may increase checkpoint_segments in our system

That's not strictly necessary, but personally I think both of those
settings are too low for you.

> #maxwritten_clean is high, suggests increase bgwriter_lru_maxpages

Yes.

> # buffers_backend is much smaller than buffers_alloc, suggests
> increasing bgwriter_lru_maxpages, bgwriter_lru_multiplier, and
> decreasing bgwriter_delay.

You should rather compare buffers_backend against buffers_checkpoint.


Also consider graphing these quantities over time so you can see how
different workloads affects the results and what the effects of your
tuning are.

Also turn on log_checkpoints and look at the sync times.  In my
experience that dominates all the bgwriter tuning.


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (4+ messages)  latest in thread

Message-ID: <5419F1CC.8060309@gmx.net>
Permalink:  ../5419F1CC.8060309@gmx.net/
Also on:    postgresql.org/message-id/5419F1CC.8060309@gmx.net

 · 

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-admin@postgresql.org
  Cc: peter_e@gmx.net, Suya.Huang@au.experian.com
  Subject: Re: How to interpret view pg_stat_bgwriter
  In-Reply-To: <5419F1CC.8060309@gmx.net>

* 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