1
0
Fork 0

Modules: set RAID optimizations

This commit is contained in:
Aires 2025-01-02 14:01:16 -05:00
parent b55dff080a
commit 9da3430b83

View file

@ -49,6 +49,13 @@ in
options = [ "nofail" ];
};
# Optimize RAID performance via udev rules
# See https://serverfault.com/questions/579489/linux-what-is-stripe-cache-size-and-what-does-it-do
services.udev.extraRules = ''
SUBSYSTEM=="block", KERNEL=="md*", ACTION=="change", TEST=="md/stripe_cache_size", ATTR{md/stripe_cache_size}="8192"
SUBSYSTEM=="block", KERNEL=="md*", ACTION=="change", TEST=="queue/read_ahead_kb", ATTR{md/read_ahead_kb}="8192"
'';
# Automatically scrub the array monthly
systemd = {
services."raid-scrub" = {