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

Re: Checkpoint and Background Writer Statistics

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Sam Nelson <samn(at)consistentstate(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Checkpoint and Background Writer Statistics
Date: 2011-02-23 00:38:26
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Sam Nelson wrote:
> One of our clients has an lru_max_dirty setting of 1000 and a 
> bgwriter_delay of 200, but we're still seeing much higher growth in 
> the buffers_checkpoint than buffers_clean, with buffers_checkpoint 
> increasing at about 20 times the rate that buffers_clean is.  We don't 
> see very much growth in the maxwritten_clean, though - something like 
> one every couple of days.

The background writer can only clean data pages that haven't been used 
in a while.  In your case, it sounds like most of the things that are 
getting dirty are being touched enough that they never meet its 
criteria.  There's nothing wrong with that.  Writing out dirty buffers 
only once per checkpoint is in theory the most efficient way to handle 
regularly changed data.

Greg Smith   2ndQuadrant US    greg(at)2ndQuadrant(dot)com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support
"PostgreSQL 9.0 High Performance":

In response to

pgsql-admin by date

Next:From: Bernhard RohrerDate: 2011-02-23 08:12:19
Subject: Re: PG_update to 9.0.4 in ubuntu lucid 64
Previous:From: Prabhjot S. SheenaDate: 2011-02-22 23:44:34
Subject: Intallation of postgres 9.0.3 gives an error on already installed postgres 8.4 on the same machine

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