diff options
author | NeilBrown <neilb@suse.de> | 2005-11-28 13:44:09 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-28 14:42:25 -0800 |
commit | 22dfdf5212e5864b844f629736fb993d4611f190 (patch) | |
tree | e5c2dfd3fbd786323e8adad35f98f26ca22efde2 /drivers/md/raid5.c | |
parent | 20c5ab6821b3a7aad31fb5a4660e9fe414fb37f6 (diff) | |
download | op-kernel-dev-22dfdf5212e5864b844f629736fb993d4611f190.zip op-kernel-dev-22dfdf5212e5864b844f629736fb993d4611f190.tar.gz |
[PATCH] md: improve read speed to raid10 arrays using 'far copies'
raid10 has two different layouts. One uses near-copies (so multiple
copies of a block are at the same or similar offsets of different
devices) and the other uses far-copies (so multiple copies of a block
are stored a greatly different offsets on different devices). The point
of far-copies is that it allows the first section (normally first half)
to be layed out in normal raid0 style, and thus provide raid0 sequential
read performance.
Unfortunately, the read balancing in raid10 makes some poor decisions
for far-copies arrays and you don't get the desired performance. So
turn off that bad bit of read_balance for far-copies arrays.
With this patch, read speed of an 'f2' array is comparable with a raid0
with the same number of devices, though write speed is ofcourse still
very slow.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/raid5.c')
0 files changed, 0 insertions, 0 deletions