linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAID 1 vs RAID 0
@ 2006-01-18  5:07 Max Waterman
  2006-01-18  5:20 ` Max Waterman
  2006-01-18  7:40 ` Mark Hahn
  0 siblings, 2 replies; 8+ messages in thread
From: Max Waterman @ 2006-01-18  5:07 UTC (permalink / raw)
  To: linux-raid

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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-01-18 13:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-18  5:07 RAID 1 vs RAID 0 Max Waterman
2006-01-18  5:20 ` 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

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).