From: Merlin Moncure <mmoncure@gmail.com>
To: Matthew Wakeling <matthew@flymine.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Hardware vs Software RAID
Date: Wed, 25 Jun 2008 13:46:14 -0400
Message-ID: <b42b73150806251046p57f0aa66u7834b13bf4258f54@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0806251355090.4085@aragorn.flymine.org>
References: <48622660.4050403@careerjunction.co.za>
<b42b73150806250552q3e070069ja63a22dab0f6cf73@mail.gmail.com>
<Pine.LNX.4.64.0806251355090.4085@aragorn.flymine.org>
On Wed, Jun 25, 2008 at 9:03 AM, Matthew Wakeling <matthew@flymine.org> wrote:
> On Wed, 25 Jun 2008, Merlin Moncure wrote:
>>>
>>> Has anyone done some benchmarks between hardware RAID vs Linux MD
>>> software
>>> RAID?
>>
>> I have here:
>>
>> http://merlinmoncure.blogspot.com/2007/08/following-are-results-of-our-testing-of.html
>>
>> The upshot is I don't really see a difference in performance.
>
> The main difference is that you can get hardware RAID with battery-backed-up
> cache, which means small writes will be much quicker than software RAID.
> Postgres does a lot of small writes under some use cases.
As discussed down thread, software raid still gets benefits of
write-back caching on the raid controller...but there are a couple of
things I'd like to add. First, if your sever is extremely busy, the
write back cache will eventually get overrun and performance will
eventually degrade to more typical ('write through') performance.
Secondly, many hardware raid controllers have really nasty behavior in
this scenario. Linux software raid has decent degradation in overload
conditions but many popular raid controllers (dell perc/lsi logic sas
for example) become unpredictable and very bursty in sustained high
load conditions.
As greg mentioned, I trust the linux kernel software raid much more
than the black box hw controllers. Also, contrary to vast popular
mythology, the 'overhead' of sw raid in most cases is zero except in
very particular conditions.
merlin
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: mmoncure@gmail.com, matthew@flymine.org
Subject: Re: Hardware vs Software RAID
In-Reply-To: <b42b73150806251046p57f0aa66u7834b13bf4258f54@mail.gmail.com>
References: <48622660.4050403@careerjunction.co.za> <b42b73150806250552q3e070069ja63a22dab0f6cf73@mail.gmail.com> <Pine.LNX.4.64.0806251355090.4085@aragorn.flymine.org> <b42b73150806251046p57f0aa66u7834b13bf4258f54@mail.gmail.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