Skip site navigation (1) Skip section navigation (2)

long checkpoint_timeout

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: long checkpoint_timeout
Date: 2007-02-23 18:14:29
Message-ID: 1172254469.10824.243.camel@dogma.v10.wvs (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
The postgresql.conf says that the maximum checkpoint_timeout is 1 hour.
However, the following messages seem to suggest that it may be useful to
set the value significantly higher to reduce unnecessary WAL volume:

Is there a reason for the hour-long limit on checkpoint_timeout? Is
there a cost to doing so, aside from potentially longer recovery time?

As I understand it, the background writer keeps the I/O more balanced
anyway, avoiding I/O spikes at checkpoint. 

I don't need the checkpoint time to be higher than 1 hour, but I'm
trying to understand the reasoning behind the limit and the implications
of a longer checkpoint_timeout.

The docs here:

say that checkpoints cause extra disk I/O. Is there a good way to
measure how much extra I/O (and WAL volume) is caused by the
checkpoints? Also, it would be good to know how much total I/O is caused
by a checkpoint so that I know if bgwriter is doing it's job.

	Jeff Davis


pgsql-performance by date

Next:From: GeoffreyDate: 2007-02-23 19:05:57
Subject: which Xeon processors don't have the context switching problem
Previous:From: Bill MoranDate: 2007-02-23 18:11:37
Subject: Re: Recommended Initial Settings

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group