pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Greg Smith <greg@2ndquadrant.com>
Cc: Kenneth Cox <kenstir@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Advice configuring ServeRAID 8k for performance
Date: Fri, 13 Aug 2010 14:17:01 -0400 (EDT)
Message-ID: <201008131817.o7DIH1b03550@momjian.us> (raw)
In-Reply-To: <4C5B139B.2010600@2ndquadrant.com>

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  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



view thread (33+ messages)  latest in thread

Message-ID: <201008131817.o7DIH1b03550@momjian.us>
Permalink:  ../201008131817.o7DIH1b03550@momjian.us/
Also on:    postgresql.org/message-id/201008131817.o7DIH1b03550@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: bruce@momjian.us, greg@2ndquadrant.com, kenstir@gmail.com
  Subject: Re: Advice configuring ServeRAID 8k for performance
  In-Reply-To: <201008131817.o7DIH1b03550@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox