linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Max Waterman <davidmaxwaterman+gmane@fastmail.co.uk>
To: linux-raid@vger.kernel.org
Subject: RAID 1 vs RAID 0
Date: Wed, 18 Jan 2006 13:07:16 +0800	[thread overview]
Message-ID: <dqkie5$mf2$3@sea.gmane.org> (raw)

Hi,

I've been reading a bit about RAID 1 vs RAID 0 on these pages :

<http://www.pcguide.com/ref/hdd/perf/raid/levels/single_Level1.htm>

They seem to suggest RAID 0 is faster for reading than RAID 1, and I 
can't figure out why.

Clearly, the write performance is worse for RAID 1 than RAID 0 since 
with RAID 1 that data you are writing at the same time is the same for 
both drives; but for reading, why can't the two drives be read as if 
they were a stripe.

You could even read the stripe in any 'direction'...when the RAID 1 
array has more than two disks, that would make RAID 1 *faster* than RAID 0.

ie

RAID 0
file is like this
0 1 2 3 4

can only be read in that order :
0 1 2 3 4 but

RAID 1
file is like this
A B C D E
---------
0 0 0 0 0
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4

can be read as
A B C D E
0
   1
     2
       3
         4

or
1
   0
     3
       4
         2

or whatever...

Could it not help with small files and when not streaming?

Am I missing something?

Max.


             reply	other threads:[~2006-01-18  5:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-18  5:07 Max Waterman [this message]
2006-01-18  5:20 ` RAID 1 vs RAID 0 Max Waterman
2006-01-18  7:40 ` Mark Hahn
2006-01-18  8:00   ` Max Waterman
2006-01-18  8:40     ` Brad Campbell
2006-01-18 10:33     ` Mario 'BitKoenig' Holbe
2006-01-18 11:43     ` Neil Brown
2006-01-18 13:02     ` John Hendrikx

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dqkie5$mf2$3@sea.gmane.org' \
    --to=davidmaxwaterman+gmane@fastmail.co.uk \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).