Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 06F3C632BED for ; Fri, 13 Aug 2010 15:17:11 -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 98618-07 for ; Fri, 13 Aug 2010 18:17:03 +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 CF9B063280D for ; Fri, 13 Aug 2010 15:17:03 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o7DIH1b03550; Fri, 13 Aug 2010 14:17:01 -0400 (EDT) From: Bruce Momjian Message-Id: <201008131817.o7DIH1b03550@momjian.us> Subject: Re: Advice configuring ServeRAID 8k for performance In-Reply-To: <4C5B139B.2010600@2ndquadrant.com> To: Greg Smith Date: Fri, 13 Aug 2010 14:17:01 -0400 (EDT) CC: Kenneth Cox , 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=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/154 X-Sequence-Number: 39997 Greg Smith wrote: > > 2) Should I configure the ext3 file system with noatime and/or > > data=writeback or data=ordered? My controller has a battery, the > > logical drive has write cache enabled (write-back), and the physical > > devices have write cache disabled (write-through). > > data=ordered is the ext3 default and usually a reasonable choice. Using > writeback instead can be dangerous, I wouldn't advise starting there. > noatime is certainly a good thing, but the speedup is pretty minor if > you have a battery-backed write cache. We recomment 'data=writeback' for ext3 in our docs: http://www.postgresql.org/docs/9.0/static/wal-intro.html Tip: Because WAL restores database file contents after a crash, journaled file systems are not necessary for reliable storage of the data files or WAL files. In fact, journaling overhead can reduce performance, especially if journaling causes file system data to be flushed to disk. Fortunately, data flushing during journaling can often be disabled with a file system mount option, e.g. data=writeback on a Linux ext3 file system. Journaled file systems do improve boot speed after a crash. Should this be changed? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +