pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndQuadrant.com>
To: pgsql-performance@postgresql.org
Subject: Re: buffercache/bgwriter
Date: Mon, 28 Mar 2011 02:02:42 -0400
Message-ID: <4D902482.9010705@2ndQuadrant.com> (raw)
In-Reply-To: <AANLkTikE-ULyh=ZAguktzT07ENiniT-WKmhnjcT_V1Jm@mail.gmail.com>
References: <AANLkTi=hL_-85=daT1WKwdptZrBxuUn=phLUwYPwtVwC@mail.gmail.com>
	<6010559739.20110323141959@erwied.eu>
	<AANLkTikfBd5MSoYbftWcpn0TaXeb2VbcJW0uHcyNaHHn@mail.gmail.com>
	<AANLkTi=FkCBrbN2jYbRPcEezby8FdO-85Dyq=51j68aq@mail.gmail.com>
	<AANLkTinUauXRFtZxUGPrhT4UuccBuP1xWd4NV4Dj5Qt-@mail.gmail.com>
	<AANLkTikE-ULyh=ZAguktzT07ENiniT-WKmhnjcT_V1Jm@mail.gmail.com>

On 03/24/2011 05:19 AM, Uwe Bartels wrote:
> It would also be good to see how many buffers were written by backend 
> processes grouped by Buffer Access Strategy - to better distinguish 
> evil backend writes from wanted backend writes.

Since all these writes are being cached by the operating system, which 
strategy writes them out isn't that useful to track.  The only really 
"evil" type of writes are ones where the background writer doesn't 
absorb the fsync calls and the backends have to do that themselves.  And 
as of V9.1, that is something you can distinguish in pg_stat_bgwriter 
(and it's also less likely to happen, too)

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books




view thread (14+ messages)  latest in thread

Message-ID: <4D902482.9010705@2ndQuadrant.com>
Permalink:  ../4D902482.9010705@2ndQuadrant.com/
Also on:    postgresql.org/message-id/4D902482.9010705@2ndQuadrant.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: greg@2ndQuadrant.com
  Subject: Re: buffercache/bgwriter
  In-Reply-To: <4D902482.9010705@2ndQuadrant.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