Re: maximum amount of data to be written during checkpoint?

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: depesz(at)depesz(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: maximum amount of data to be written during checkpoint?
Date: 2008-01-24 12:13:12
Message-ID: 1201176792.4257.220.camel@ebony.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2008-01-24 at 11:21 +0100, hubert depesz lubaczewski wrote:

> what is the maximum amount of data to be written in checkpoint?
>
> i always assumed this to be <shared_buffers>.
>
> but some last tests show it to be much more. what am i missing?

Fsync will flush all outstanding writes, so you probably have some
writes that weren't yet flushed before the checkpoint started. If you
don't do any intermediate writing then this could be *all* of the data
you've written since the last checkpoint. If you want to reduce this,
set parameters to perform more regular writes from filesystem to disk.

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message User Map 2008-01-24 13:02:49 changing the default directory
Previous Message Roberto Scattini 2008-01-24 12:09:57 Re: pg_xlog and standby - SOLVED