Skip to contentSkip to conversation

recovery speed on many-disk RAID 1

DISCUSSION Jeff Breidenbach 2 participants 2 messages May 21, 2006 MD RAID

lore
Share & tools
lore
#0 lore raw

Consider the following setup, mainly designed for reading random small files quickly. Normally, this a quintuply redundant RAID-1.

# cat /proc/mdstat
Personalities : [raid1] 
md1 : active raid1 sdg1[6] sde1[1] sdb1[4] sdd1[3] sdc1[2]
      488383936 blocks [6/4] [_UUUU_]
      [>....................]  recovery =  3.7% (18245248/488383936) finish=725.7min speed=10794K/sec
# mount | grep backup
/dev/sdf1 on /backup type reiserfs (ro)

However, right now a backup operation is occuring. The backup strategy is simply swapping a pair of drives between the RAID and /backup, and letting linux-raid do all the work. Here we've just pulled sdf1 from the RAID and inserted sdg1.

The interesting part here is the recovery rate. It seems to tightly hug whatever is set in /proc/sys/dev/raid/speed_limit_min. I'm kind of suprised about that, and suspect the recovery operation is getting interrupted by seeks from read requests on the RAID. But that's not really necessary; imagine if it instead went something like:

sbb1 -> sbg1 # High bandwidth copy operation limited by drive speed
sb[cde]1 # These guys handle read requests

I think that's more or less what happens anyway when I crank up speed_limit_min. But I wonder if such a thing could happen automatically? Isn't this generally the right way to go when dealing with recovery and many-disk RAID-1?

Cheers,
Jeff

#1 lore raw
Quoted 6 lines · On Saturday May 20, [email protected] wrote:

interrupted by seeks from read requests on the RAID. But that's not really necessary; imagine if it instead went something like:

sbb1 -> sbg1 # High bandwidth copy operation limited by drive speed
sb[cde]1 # These guys handle read requests

Yeh... that could be done. There is even a comment in the 2.4 code:

	/* If reconstructing, and >1 working disc,
	 * could dedicate one to rebuild and others to
	 * service read requests ..
	 */

though that seems to have disappeared from 2.6.

Given that
- high rebuild speed could swamp some buss and so interfere with regular IO and
- it is fairly easy to ask for the speed to be higher

I'm not sure that it is necessary.... might be interesting though.

I've added it to my todo list, but if someone else would like to have a try....

NeilBrown