lkml.org 
[lkml]   [2005]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Poor Software RAID-0 performance with 2.6.14.2
Bill Davidsen wrote:

> One of the advantages of mirroring is that if there is heavy read load
> when one drive is busy there is another copy of the data on the other
> drive(s). But doing 1MB reads on the mirrored device did not show that
> the kernel took advantage of this in any way. In fact, it looks as if
> all the reads are going to the first device, even with multiple
> processes running. Does the md code now set "write-mostly" by default
> and only go to the redundant drives if the first fails?

No, it doesn't use write-mostly by default. The way raid1 read balancing
works (in recent kernels) is this:

- sequential reads continue to go to the first disk

- for non-sequential reads, the code tries to pick the disk whose head
is "closest" to the sector that needs to be read

So even if the reads aren't exactly sequential, you probably still end
up reading from the first disk most of the time. I imagine with a more
random read pattern you'd see the second disk getting used.

--
Paul
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-22 19:26    [W:0.256 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site