Re: software raid does not do parallel reads under 2.4?

From: Neil Brown (neilb@cse.unsw.edu.au)
Date: Fri Aug 24 2001 - 05:25:29 EST


On Thursday August 23, pcg( Marc)@goof(A.).(Lehmann )com wrote:
> It seems that the md driver in striped mode does not parallelize any reads
> under 2.4. The scenario is that I have 3 disks on different controllers
> (different pci slots), so there should not be any ide bus contention.
>
> When I read any single disk (e.g. using hdparm or dd), I get 32MB/s. When
> I read two of them at the same time, I get about 28MB/s for each disk.
>
> Under linux-2.2 using md and striping I get about 40-50MB/s, whereas, under
> 2.4, the same raid gives about 30MB/s.
>
> I then reformatted the raid to have 2MB chunksize. If I look at the disk
> LED's while reading from them (e.g. dd if=/dev/md3 bs=1024x1024x8), I see
> that each disk is read in turn, while the other two disks are idle.
>
> so it looks as if md under 2.4 only reads disks in turn, which makes
> striping useless as a performance tool.

For raid0, the md driver just redirects requests to the right drive.
It doesn't explicitly serialise or parallelise anything. 2.4 works in
exactly the same was as 2.2.

With a 2MB chunksize, I would expect a linear read to touch just one
drive at a time.
With a 4K chunk size, I suspect that an linear read would read from
all the drives in parallel.
You say that you reformatted to 2MB chunksize. What did you reformat
from?

NeilBrown
-
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/



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:08 EST