]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: allow resync to go faster when there is competing IO.
authorNeilBrown <neilb@suse.de>
Thu, 19 Feb 2015 05:55:00 +0000 (16:55 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 8 Apr 2015 02:57:51 +0000 (12:57 +1000)
commit9a5c257f57a76c3b4e5111d3968a03561a61aac7
tree80c05fc42dca2f636a162530a374517a357e3af3
parent9718d46175e241a9deeb9f7e96a32e4bf7cca522
md: allow resync to go faster when there is competing IO.

When md notices non-sync IO happening while it is trying
to resync (or reshape or recover) it slows down to the
set minimum.

The default minimum might have made sense many years ago
but the drives have become faster.  Changing the default
to match the times isn't really a long term solution.

This patch changes the code so that instead of waiting until the speed
has dropped to the target, it just waits until pending requests
have completed, and then waits about as long again.
This means that the delay inserted is a function of the speed
of the devices.

Test show that:
 - for some loads, the resync speed is unchanged.  For those loads
   increasing the minimum doesn't change the speed either.
   So this is a good result.  To increase resync speed under such
   loads we would probably need to increase the resync window
   size.

 - for other loads, resync speed does increase to a reasonable
   fraction (e.g. 20%) of maximum possible, and throughput of
   the load only drops a little bit (e.g. 10%)

 - for other loads, throughput of the non-sync load drops quite a bit
   more.  These seem to be latency-sensitive loads.

So it isn't a perfect solution, but it is mostly an improvement.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c