Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4297A1337B8D for ; Thu, 21 Oct 2010 14:31:31 -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 36341-06 for ; Thu, 21 Oct 2010 17:31:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by mail.postgresql.org (Postfix) with ESMTP id 7C7CB1337B78 for ; Thu, 21 Oct 2010 14:31:23 -0300 (ADT) Received: from [192.168.1.7] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MCOnp-1PI1XS0aMz-009gtB; Thu, 21 Oct 2010 19:31:12 +0200 Message-ID: <4CC078DD.3010107@2ndquadrant.com> Date: Thu, 21 Oct 2010 13:31:09 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Kevin Grittner CC: Bruce Momjian , jd@commandprompt.com, Scott Marlowe , Steve Crawford , pgsql-performance@postgresql.org, Ben Chobot Subject: Re: BBU Cache vs. spindles References: <4CC02A520200002500036C14@gw.wicourts.gov> <201010211659.o9LGxkV01781@momjian.us> <4CC02ED30200002500036C24@gw.wicourts.gov> In-Reply-To: <4CC02ED30200002500036C24@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:35K2TkYDmMxEYZ5gWqupYM7frRbRejFVloxanW48FVL VeqQih54uFOuKmVw0v46l3vJ6o73Xh6CBrtU4IGnwUWOSbjz/L NdupSS0/xXOUFAyPLe48YmyLLOfJ9vaVrTSZ2U5Z99LU7GUUPa l2b8fVK4rYKV758MJgAOD9Xb+bkdxW+PDceBIfgFHlGygo5AmR F38xAjoUOaLJ6DsGpj4fhkVz0gLRsaeAlH45IEcprY= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201010/361 X-Sequence-Number: 40779 Kevin Grittner wrote: > Bruce Momjian wrote: > > >> full_page_writes is designed to guard against a partial write to a >> device. I don't think the raid cache can be partially written to >> > > 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. That's why full_page_writes should be safe on a system with BBU as Bruce is suggesting. But I'd like to see some independent proof of that fact, that includes some targeted tests users can run, before we start recommending that practice. -- Greg Smith, 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services and Support www.2ndQuadrant.us