pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitry Koterov <dmitry@koterov.ru>
To: Postgres General <pgsql-general@postgresql.org>
Subject: Bgwriter and pg_stat_bgwriter.buffers_clean aspects
Date: Fri, 26 Dec 2008 00:37:08 +0300
Message-ID: <d7df81620812251337s41fcbefdyf7089dd8c57e6214@mail.gmail.com> (raw)

Hello.

I am trying to tune PostgreSQL write parameters to make writing operation
fast on a heavy-loaded database (a lot of inserts/updates).
After resetting the pg_stat_bgwriter statistics (I do it by deleting
global/pgstat.stat file and restarting PostgreSQL) I monitor the following:

# select * from pg_stat_bgwriter;
 checkpoints_timed | checkpoints_req | buffers_checkpoint | buffers_clean |
maxwritten_clean | buffers_backend | buffers_alloc
-------------------+-----------------+--------------------+---------------+------------------+-----------------+---------------
                 0 |               0 |                  0 |             0
|                0 |             164 |          6653

So, you see that just after resetting the statistics we have a large value
in buffers_backend. Why?
Documentation:
http://www.westnet.com/~gsmith/content/postgresql/chkp-bgw-83.htm
says that "buffers_backend

view thread (6+ messages)  latest in thread

Message-ID: <d7df81620812251337s41fcbefdyf7089dd8c57e6214@mail.gmail.com>
Permalink:  ../d7df81620812251337s41fcbefdyf7089dd8c57e6214@mail.gmail.com/
Also on:    postgresql.org/message-id/d7df81620812251337s41fcbefdyf7089dd8c57e6214@mail.gmail.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: dmitry@koterov.ru, pgsql-general@postgresql.org
  Subject: Re: Bgwriter and pg_stat_bgwriter.buffers_clean aspects
  In-Reply-To: <d7df81620812251337s41fcbefdyf7089dd8c57e6214@mail.gmail.com>
  References: <d7df81620812251337s41fcbefdyf7089dd8c57e6214@mail.gmail.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