Stripe cache settings on Linux mdraid
Published (last updated )
Improving mdadm RAID-6 write speed
try
echo 32768 > /sys/block/md0/md/stripe_cache_size
and check ;)
share improve this answer follow answered Sep 9 ’12 at 7:16 DM1 4111 silver badge11 bronze badge
In previous answer we were testing different stripe_cache_sizes. Setting it to 32768 didn’t improved anything. I am still at ~100Mb/sec writes even after upgrade (E8500 CPU, 8Gb ram and 8x1Tb array) – BarsMonster Sep 10 ’12 at 23:42
ABSURD! That instantly increased my write performance from ~70MB/s to ~360MB/s!?! Oh my god. W-T-F is this not default?!? – stolsvik Jan 27 ’13 at 1:19
Oh my word. This really works… From [================>….] recovery = 82.1% (1604609136/1953382144) finish=122.7min speed=47348K/sec to [================>….] recovery = 82.3% (1607712880/1953382144) finish=56.2min speed=102451K/sec – Lmwangi Aug 1 ’15 at 14:55
In my testing, the value of 8192 seems sufficient. Despite throwing everything I had to test with at an array, I couldn’t get stripe_cache_active to spike higher than the low 7000s. – Jody Bruchon Nov 11 ’15 at 3:50