Received: from maia.hub.org (unknown [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 184DB1337B54 for ; Thu, 21 Oct 2010 15:54:16 -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 60523-07 for ; Thu, 21 Oct 2010 18:54:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id C955E1337B50 for ; Thu, 21 Oct 2010 15:54:07 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 21 Oct 2010 13:54:07 -0500 Message-Id: <4CC045FB0200002500036C4B@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 21 Oct 2010 13:54:03 -0500 From: "Kevin Grittner" To: "Greg Smith" Cc: ,"Scott Marlowe" , "Bruce Momjian" , "Steve Crawford" , , "Ben Chobot" Subject: Re: BBU Cache vs. spindles References: <4CC02A520200002500036C14@gw.wicourts.gov> <201010211659.o9LGxkV01781@momjian.us> <4CC02ED30200002500036C24@gw.wicourts.gov> <4CC078DD.3010107@2ndquadrant.com> In-Reply-To: <4CC078DD.3010107@2ndquadrant.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/363 X-Sequence-Number: 40781 Greg Smith wrote: > Kevin Grittner wrote: >> So you're confident that an 8kB write to the controller will not >> be done as a series of smaller atomic writes by the OS file >> system? > > Sure, that happens. But if the BBU has gotten an fsync call after > the 8K write, it shouldn't return success until after all 8K are > in its cache. I'm not concerned about an fsync after the controller has it; I'm concerned about a system crash in the middle of writing an 8K page to the controller. Other than the expected *size* of the window of time during which you're vulnerable, what does a BBU caching controller buy you in this regard? Can't the OS rearrange the writes of disk sectors after the 8K page is written to the OS cache so that the window might occasionally be rather large? -Kevin