Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id ED9FF6330F6 for ; Fri, 4 Jun 2010 12:41:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 83695-03 for ; Fri, 4 Jun 2010 15:41:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 33BC06323AA for ; Fri, 4 Jun 2010 12:41:52 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o54Ffha12015; Fri, 4 Jun 2010 11:41:43 -0400 (EDT) From: Bruce Momjian Message-Id: <201006041541.o54Ffha12015@momjian.us> Subject: Re: Weird XFS WAL problem In-Reply-To: <4C08D7070200002500031F66@gw.wicourts.gov> To: Kevin Grittner Date: Fri, 4 Jun 2010 11:41:43 -0400 (EDT) CC: Greg Smith , Craig James , Matthew Wakeling , pgsql-performance@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-10 required=5 tests=BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/94 X-Sequence-Number: 38950 Kevin Grittner wrote: > Bruce Momjian 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 http://momjian.us EnterpriseDB http://enterprisedb.com + None of us is going to be here forever. +