pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Merlin Moncure <mmoncure@gmail.com>
To: ptb@inv.it.uc3m.es
Cc: Matthew Wakeling <matthew@flymine.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Hardware vs Software RAID
Date: Thu, 26 Jun 2008 13:26:00 -0400
Message-ID: <b42b73150806261026v7c3ef514y3fc26e833e7a39ba@mail.gmail.com> (raw)
In-Reply-To: <200806261349.m5QDniN6026724@betty.it.uc3m.es>
References: <b42b73150806251046p57f0aa66u7834b13bf4258f54@mail.gmail.com>
	<200806261349.m5QDniN6026724@betty.it.uc3m.es>

On Thu, Jun 26, 2008 at 9:49 AM, Peter T. Breuer <ptb@inv.it.uc3m.es> wrote:
> "Also sprach Merlin Moncure:"
>> As discussed down thread, software raid still gets benefits of
>> write-back caching on the raid controller...but there are a couple of
>
> (I wish I knew what write-back caching was!)

hardware raid controllers generally have some dedicated memory for
caching.  the controllers can be configured in one of two modes: (the
jargon is so common it's almost standard)
write back: raid controller can lie to host o/s. when o/s asks
controller to sync, controller can hold data in cache (for a time)
write through: raid controller can not lie. all sync requests must
pass through to disk

The thinking is, the bbu on the controller can hold scheduled writes
in memory (for a time) and replayed to disk when server restarts in
event of power failure.  This is a reasonable compromise between data
integrity and performance.  'write back' caching provides insane burst
IOPS (because you are writing to controller cache) and somewhat
improved sustained IOPS because the controller is reorganizing writes
on the fly in (hopefully) optimal fashion.

> This imposes a considerable extra resource burden. It's a mystery to me
> However the lack of extra buffering is really deliberate (double
> buffering is a horrible thing in many ways, not least because of the

<snip>
completely unconvincing.  the overhead of various cache layers is
completely minute compared to a full fault to disk that requires a
seek which is several orders of magnitude slower.

The linux software raid algorithms are highly optimized, and run on a
presumably (much faster) cpu than what the controller supports.
However, there is still some extra oomph you can get out of letting
the raid controller do what the software raid can't...namely delay
sync for a time.

merlin



view thread (32+ messages)  latest in thread

Message-ID: <b42b73150806261026v7c3ef514y3fc26e833e7a39ba@mail.gmail.com>
Permalink:  ../b42b73150806261026v7c3ef514y3fc26e833e7a39ba@mail.gmail.com/
Also on:    postgresql.org/message-id/b42b73150806261026v7c3ef514y3fc26e833e7a39ba@mail.gmail.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 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, ptb@inv.it.uc3m.es, matthew@flymine.org
  Subject: Re: Hardware vs Software RAID
  In-Reply-To: <b42b73150806261026v7c3ef514y3fc26e833e7a39ba@mail.gmail.com>
  References: <b42b73150806251046p57f0aa66u7834b13bf4258f54@mail.gmail.com> <200806261349.m5QDniN6026724@betty.it.uc3m.es> <b42b73150806261026v7c3ef514y3fc26e833e7a39ba@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