pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Greg Smith <greg@2ndquadrant.com>
Cc: Craig James <craig_james@emolecules.com>
Cc: Matthew Wakeling <matthew@flymine.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Weird XFS WAL problem
Date: Fri, 4 Jun 2010 11:41:43 -0400 (EDT)
Message-ID: <201006041541.o54Ffha12015@momjian.us> (raw)
In-Reply-To: <4C08D7070200002500031F66@gw.wicourts.gov>

Kevin Grittner wrote:
> Bruce Momjian <bruce@momjian.us> wrote:
> > Kevin Grittner wrote:
>  
> >> Any decent RAID controller will ensure that the drives themselves
> >> aren't using write-back caching.  When we've mentioned write-back
> >> versus write-through on this thread we've been talking about the
> >> behavior of the *controller*.  We have our controllers configured
> >> to use write-back through the BBU cache as long as the battery is
> >> good, but to automatically switch to write-through if the battery
> >> goes bad.
> > 
> > OK, good, but when why would a BBU RAID controller flush stuff to
> > disk with a flush-all command?  I thought the whole goal of BBU
> > was to avoid such flushes.
>  
> That has been *precisely* my point.
>  
> I don't know at the protocol level; I just know that write barriers
> do *something* which causes our controllers to wait for actual disk
> platter persistence, while fsync does not.
>  
> The write barrier concept seems good to me, and I wish it could be
> used at the OS level without killing performance.  I blame the
> controller, for not treating it the same as fsync (i.e., as long as
> it's in write-back mode it should treat data as persisted as soon as
> it's in BBU cache).

Yeah.  I wonder if it honors the cache flush because it might think it
is replacing disks or something odd.  I think we are going to have to
document this in 9.0 because obviously you have seen it already.

Is this an issue with SAS cards/drives as well?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + None of us is going to be here forever. +



view thread (25+ messages)  latest in thread

Message-ID: <201006041541.o54Ffha12015@momjian.us>
Permalink:  ../201006041541.o54Ffha12015@momjian.us/
Also on:    postgresql.org/message-id/201006041541.o54Ffha12015@momjian.us

 · 

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: bruce@momjian.us, Kevin.Grittner@wicourts.gov, greg@2ndquadrant.com, craig_james@emolecules.com, matthew@flymine.org
  Subject: Re: Weird XFS WAL problem
  In-Reply-To: <201006041541.o54Ffha12015@momjian.us>
  References: <4C08D7070200002500031F66@gw.wicourts.gov> <201006041541.o54Ffha12015@momjian.us>

* 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