Maximize throughput for rebuilding software RAID:
One-time
If you want to maximize performance for one time (till reboot) then run:
echo 99999999 > /proc/sys/dev/raid/speed_limit_min
echo 99999999 > /proc/sys/dev/raid/speed_limit_max
Permanent
If you want to maximize performance permanently then run:
sysctl -w dev.raid.speed_limit_min=99999999
sysctl -w dev.raid.speed_limit_min=99999999