Re: How to interpret view pg_stat_bgwriter - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: How to interpret view pg_stat_bgwriter
Date
Msg-id 5419F1CC.8060309@gmx.net
Whole thread Raw
In response to How to interpret view pg_stat_bgwriter  ("Huang, Suya" <Suya.Huang@au.experian.com>)
Responses Re: How to interpret view pg_stat_bgwriter  ("Huang, Suya" <Suya.Huang@au.experian.com>)
List pgsql-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.


pgsql-admin by date:

Previous
From: gabrielle
Date:
Subject: Re: log message from autovac doesn't include db name
Next
From: "Rajiv Kasera"
Date:
Subject: Archiving & Reporting Support in PG9.3