pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndQuadrant.com>
To: pgsql-performance@postgresql.org
Subject: Re: RAID Controller (HP P400) beat by SW-RAID?
Date: Wed, 14 Sep 2011 03:22:05 -0400
Message-ID: <4E70561D.5090909@2ndQuadrant.com> (raw)
In-Reply-To: <CAO2AxyoGvmRYtq=1=weOU_CCnAxK8FboBa8GWS6XZ923CXCCgA@mail.gmail.com>
References: <CAO2AxyoGvmRYtq=1=weOU_CCnAxK8FboBa8GWS6XZ923CXCCgA@mail.gmail.com>

On 09/11/2011 06:44 PM, Anthony Presley wrote:
> We've currently got PG 8.4.4 running on a whitebox hardware set up, 
> with (2) 5410 Xeon's, and 16GB of RAM.  It's also got (4) 7200RPM SATA 
> drives, using the onboard IDE controller and ext3.
>
> A few weeks back, we purchased two refurb'd HP DL360's G5's, and were 
> hoping to set them up with PG 9.0.2, running replicated.  These 
> machines have (2) 5410 Xeon's, 36GB of RAM, (6) 10k SAS drives, and 
> are using the HP SA P400i with 512MB of BBWC.  PG is running on an 
> ext4 (noatime) partition, and they drives configured as RAID 1+0 
> (seems with this controller, I cannot do JBOD). .
> To start with, I've set the "relevant" parameters in postgresql.conf 
> the same on the new config as the old:
>
>   fsync = on
>   synchronous_commit = off

The main thing that a hardware RAID controller improves on is being able 
to write synchronous commits much faster than you can do without one.  
If you've turned that off, you've essentially neutralized its primary 
value.  In every other respect, software RAID is faster:  the CPUs in 
your server are much faster than the IO processor on the card, and Linux 
has a lot more memory for caching than it does too.  Turning off sync 
commit may be fine for loading, but you'll be facing data loss at every 
server interruption if you roll things out like that.  It's not 
realistic production performance for most places running like that.

A lot of your test results seem like they may be using different levels 
of write reliability, which makes things less fair than they should be 
too--in favor of the cheap IDE drives normally.  Check out 
http://wiki.postgresql.org/wiki/Reliable_Writes for more information 
about that topic.

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us




view thread (12+ messages)

Message-ID: <4E70561D.5090909@2ndQuadrant.com>
Permalink:  ../4E70561D.5090909@2ndQuadrant.com/
Also on:    postgresql.org/message-id/4E70561D.5090909@2ndQuadrant.com

 · 

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: greg@2ndQuadrant.com
  Subject: Re: RAID Controller (HP P400) beat by SW-RAID?
  In-Reply-To: <4E70561D.5090909@2ndQuadrant.com>

* 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