From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Venkat Balaji <venkat.balaji@verse.in>
Cc: PGSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: : PG9.0 - Checkpoint tuning and pg_stat_bgwriter
Date: Tue, 04 Oct 2011 14:08:57 +0300
Message-ID: <4E8AE949.8030300@enterprisedb.com> (raw)
In-Reply-To: <CAFrxt0iXn1vzF0wBzva+8CSdK34iqJ+mzcucxGpWqZ5s77LjXQ@mail.gmail.com>
References: <CAFrxt0iXn1vzF0wBzva+8CSdK34iqJ+mzcucxGpWqZ5s77LjXQ@mail.gmail.com>
On 04.10.2011 13:50, Venkat Balaji wrote:
> I have got a situation where in i see the production system is loaded with
> the checkpoints and at-least 1000+ buffers are being written for every
> checkpoint.
1000 buffers isn't very much, that's only 8 MB, so that's not alarming
itself.
> I am thinking of increasing the checkpoint_segments.
>
> Below are our current settings -
>
> checkpoint_segments = 8
> checkpoint_timeout = 5 mins
> checkpoint_completion_target = 0.5
> bgwriter_delay = 200ms
> bgwriter_lru_maxpages = 100
> bgwriter_lru_multiplier = 2
>
> Looking forward for suggestions.
Yep, increase checkpoint_segments. And you probably want to raise
checkpoint_timeout too.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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: heikki.linnakangas@enterprisedb.com, venkat.balaji@verse.in
Subject: Re: : PG9.0 - Checkpoint tuning and pg_stat_bgwriter
In-Reply-To: <4E8AE949.8030300@enterprisedb.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