linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: smart raid1 reads?
@ 2003-08-11 12:32 Michael T. Babcock
       [not found] ` <200308111119.32344.nick@byu.edu>
  2003-08-13  2:06 ` Any mdadm based cgi perl script for webmin? Bo Moon
  0 siblings, 2 replies; 4+ messages in thread
From: Michael T. Babcock @ 2003-08-11 12:32 UTC (permalink / raw)
  To: linux-raid; +Cc: Nicholas Leippe

>
>
>In a raid0, of course, reads pull off every disk in parallel, thus performance 
>scales with # of disks.
>
>However, with raid1, it does not do this--it always reads from just one half 
>of the mirror.  Why doesn't it read from both halves of the mirror in 
>parallel?  I would expect it to, and would expect raid1 to perform similar to 
>raid0 for reads.
>  
>

I was looking for more information on why this is myself today.  Its 
quite possible that the complexity is too great for anyone to be willing 
to try it yet.  After all, if you want to read off of disk 0 and disk 1 
at the same time, you need to be sure the data you're reading doesn't 
include any blocks waiting to be sync'd from the other drive.

I don't know what the in-memory structures look like for 'blocks waiting 
to be sync'd', but depending on their design, this could be easier said 
than done.

-- 
Michael T. Babcock
C.T.O., FibreSpeed Ltd.
http://www.fibrespeed.net/~mbabcock



^ permalink raw reply	[flat|nested] 4+ messages in thread
* smart raid1 reads?
@ 2003-06-20  1:14 Nicholas Leippe
  0 siblings, 0 replies; 4+ messages in thread
From: Nicholas Leippe @ 2003-06-20  1:14 UTC (permalink / raw)
  To: linux-raid

Hi,

I searched the archives, and the last time this was mentioned was in 2001, and 
no response was ever given.

In a raid0, of course, reads pull off every disk in parallel, thus performance 
scales with # of disks.

However, with raid1, it does not do this--it always reads from just one half 
of the mirror.  Why doesn't it read from both halves of the mirror in 
parallel?  I would expect it to, and would expect raid1 to perform similar to 
raid0 for reads.

I have observed this with 2.4.18 and 2.4.20 thru at least 21rc2.


Nick
please cc


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

end of thread, other threads:[~2003-08-13  2:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-11 12:32 smart raid1 reads? Michael T. Babcock
     [not found] ` <200308111119.32344.nick@byu.edu>
2003-08-11 18:27   ` Michael T. Babcock
2003-08-13  2:06 ` Any mdadm based cgi perl script for webmin? Bo Moon
  -- strict thread matches above, loose matches on Subject: below --
2003-06-20  1:14 smart raid1 reads? Nicholas Leippe

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