Thread (7 messages) 7 messages, 4 authors, 2011-05-04

Re: Mirrored volume peformance questions

From: Keld Jørn Simonsen <hidden>
Date: 2011-05-04 08:13:39

On Wed, May 04, 2011 at 09:42:40AM +0200, David Brown wrote:
raid10,far is better for sequential reads - it gives better-than-raid0 
performance on average since it will do striped reads from the faster 
outer tracks.  And for multi-threaded reads, it should also be a little 
faster than other raid10 layouts (and raid1, which is much the same as 
raid10,near).  Since it prefers to get the data from the outer half, you 
get the benefits of short-stroking your disks - faster transfer speeds 
and less head movement.

The cost of raid10,far is greater head movement for writes - but that is 
not the OP's main concern.
yes, in theory this is so. But two reasons almost eliminates this in
practice. First, the processes do not wait for completion of the IO of
writes, the processes only deliver the data to the file buffer cache of
the kernel, which then periodically flushes the data to the disk drives.
Second, the flushing of the data is ordered so that the collected data
buffers are written as much sequentially as possible to the drives.
This goes for all Linux MD RAID1/RAID10 layouts. Given that random
writes are random over the whole set of drives, for any mirrored
raid1/raid10 layout, the flushing of the data is about the same.

best regards
keld
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help