Re: Hardware purchase question

From: Madison Kelly <linux(at)alteeve(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Hardware purchase question
Date: 2005-01-03 19:35:26
Message-ID: 41D99E7E.3080704@alteeve.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Mitch Pirtle wrote:
> On Mon, 13 Dec 2004 09:23:13 -0800, Joshua D. Drake
> <jd(at)commandprompt(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message William Yu 2005-01-03 19:57:50 Re: Low Performance for big hospital server ..
Previous Message Mitch Pirtle 2005-01-03 19:20:41 Re: Hardware purchase question