pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Madison Kelly <linux@alteeve.com>
To: pgsql-performance@postgresql.org
Subject: Re: Hardware purchase question
Date: Mon, 03 Jan 2005 14:35:26 -0500
Message-ID: <41D99E7E.3080704@alteeve.com> (raw)
In-Reply-To: <330532b6050103112034cf47c8@mail.gmail.com>
References: <6.0.1.1.0.20041124114556.04b7cc80@mail.marketingsolutionsinc.com>
	<x77jnmb1jo.fsf@yertle.int.kciLink.com>
	<41BDD001.8070701@commandprompt.com>
	<330532b6050103112034cf47c8@mail.gmail.com>

Mitch Pirtle wrote:
> On Mon, 13 Dec 2004 09:23:13 -0800, Joshua D. Drake
> <jd@commandprompt.com> wrote:
> 
>>RAID 10 will typically always outperform RAID 5 with the same HD config.
> 
> 
> Isn't RAID10 just RAID5 mirrored?  How does that speed up performance?
>  Or am I missing something?
> 
> -- Mitch

Hi Mitch,

   Nope, Raid 10 (one zero) is a mirror is stripes, no parity. with r10 
you get the benefit of a full mirror which means your system does not 
need to calculate the XOR parity but you only get 50% disk usage. The 
mirror causes a slight write hit as the data needs to be split between 
two disk (or in this case, to striped pairs) but reads can be up to 
twice as fast (theoretically). By adding the stripe you negate the write 
hit and actually gain write performance because half the data goes to 
mirror A, half to mirror B (same with reads, roughly).

   Raid 10 is a popular choice for software raid because of the reduced 
overhead. Raid 5 on the otherhand does require that a parity bit is 
calculated for every N-1 disks. With r5 you get N-1 disk usage (you get 
the combined capacity of 3 disks in a 4 disk r5 array) and still get the 
benefit of striping across the disks so long as you have a dedicated 
raid asic that can do the XOR calculations. Without it, specially in a 
failure state, the performance can collapse as the CPU performs all that 
extra math.

hth

Madison



view thread (12+ messages)  latest in thread

Message-ID: <41D99E7E.3080704@alteeve.com>
Permalink:  ../41D99E7E.3080704@alteeve.com/
Also on:    postgresql.org/message-id/41D99E7E.3080704@alteeve.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: linux@alteeve.com
  Subject: Re: Hardware purchase question
  In-Reply-To: <41D99E7E.3080704@alteeve.com>
  References: <6.0.1.1.0.20041124114556.04b7cc80@mail.marketingsolutionsinc.com> <x77jnmb1jo.fsf@yertle.int.kciLink.com> <41BDD001.8070701@commandprompt.com> <330532b6050103112034cf47c8@mail.gmail.com> <41D99E7E.3080704@alteeve.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