Re: checkpoints are occurring too frequently - Mailing list pgsql-general

From Gabriele Bartolini
Subject Re: checkpoints are occurring too frequently
Date
Msg-id 1456c1b29ef1ba986cda9b23e70632db@2ndquadrant.it
Whole thread Raw
In response to checkpoints are occurring too frequently  ("Anibal David Acosta" <aa@devshock.com>)
Responses Re: checkpoints are occurring too frequently  ("Anibal David Acosta" <aa@devshock.com>)
List pgsql-general
 Hi Anibal,

 On Thu, 17 Nov 2011 09:48:10 -0300, "Anibal David Acosta"
 <aa@devshock.com> wrote:
> What should be a correct value for checkpoint_segments to avoid
> excessive checkpoint events?

 There is no golden rule or value that fits all scenarios. Usually 32 is
 a good value to start with, however it might not be perfectly tailored
 for your environment.

 To give you an idea, currently you are issuing a checkpoint every
 32*16MB of WAL traffic (or every 10 minutes). Maybe you can describe us
 better your workload, if it is subject to usage spikes or regularly
 distributed throughout the day mainly in terms of
 inserts/updates/deletes.

 I would gradually try and increase checkpoint_segments by 32 and
 monitor the effects.

 Cheers,
 Gabriele

--
  Gabriele Bartolini - 2ndQuadrant Italia
  PostgreSQL Training, Services and Support
  Gabriele.Bartolini@2ndQuadrant.it - www.2ndQuadrant.it

pgsql-general by date:

Previous
From: Gregg Jaskiewicz
Date:
Subject: Re: checkpoints are occurring too frequently
Next
From: "Anibal David Acosta"
Date:
Subject: Re: checkpoints are occurring too frequently