This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# log the default values: | |
echo "speed_limit_max: `cat /proc/sys/dev/raid/speed_limit_max`" #=> 200000 | |
echo "speed_limit_min: `cat /proc/sys/dev/raid/speed_limit_min`" #=> 10000 | |
echo "stripe_cache_size: `/sys/block/md2/md/stripe_cache_size`" #=> 256 | |
# update to use more RAM (Stripe Cache Size) and higher lower bound (speed_limit_min) | |
echo 100000 > /proc/sys/dev/raid/speed_limit_min | |
# This will result in more memory usage. bumping to 32768 resulted in ~512MB RAM increase. | |
echo 32768 > /sys/block/md2/md/stripe_cache_size |
NewerOlder