Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0F68313364DE for ; Thu, 21 Oct 2010 17:18:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 07923-05 for ; Thu, 21 Oct 2010 20:18:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.anarazel.de (mail.anarazel.de [217.115.131.40]) by mail.postgresql.org (Postfix) with ESMTP id C33C61337B47 for ; Thu, 21 Oct 2010 17:18:15 -0300 (ADT) Received: by mail.anarazel.de (Postfix, from userid 108) id 22FCC448007; Thu, 21 Oct 2010 22:18:13 +0200 (CEST) Received: from anarazel.de (e178205077.adsl.alicedsl.de [85.178.205.77]) by mail.anarazel.de (Postfix) with ESMTPSA id 32AE0448006; Thu, 21 Oct 2010 22:18:09 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id F2FE51C00F6; Thu, 21 Oct 2010 22:18:09 +0200 (CEST) From: Andres Freund To: pgsql-performance@postgresql.org Subject: Re: BBU Cache vs. spindles Date: Thu, 21 Oct 2010 22:18:09 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.36-rc8-andres-00185-ge56d55b; KDE/4.5.1; x86_64; ; ) Cc: "Kevin Grittner" , "Bruce Momjian" , "Greg Smith" , jd@commandprompt.com, "Scott Marlowe" , "Steve Crawford" , "Ben Chobot" References: <4CC04EA50200002500036C5E@gw.wicourts.gov> <201010211935.o9LJZTM21744@momjian.us> <4CC0513E0200002500036C68@gw.wicourts.gov> In-Reply-To: <4CC0513E0200002500036C68@gw.wicourts.gov> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010212218.09609.andres@anarazel.de> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/372 X-Sequence-Number: 40790 On Thursday 21 October 2010 21:42:06 Kevin Grittner wrote: > Bruce Momjian wrote: > > I assume we send a full 8k to the controller, and a failure during > > that write is not registered as a write. > > On what do you base that assumption? I assume that we send a full > 8K to the OS cache, and the file system writes disk sectors > according to its own algorithm. With either platters or BBU cache, > the data is persisted on fsync; why do you see a risk with one but > not the other? At least on linux pages can certainly get written out in < 8kb batches if youre under memory pressure. Andres