From b77a4ed48e163e266823ac49c3e4f87fb4c2af7e Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 2 Jan 2025 21:49:45 +0000 Subject: [PATCH] Modules: (maybe hopefully) improve RAID filesystem performance --- modules/nixos/system/raid/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/nixos/system/raid/default.nix b/modules/nixos/system/raid/default.nix index 2ebfdaf..ffe5d85 100644 --- a/modules/nixos/system/raid/default.nix +++ b/modules/nixos/system/raid/default.nix @@ -45,8 +45,11 @@ in }; fileSystems."/storage" = { device = "/dev/mapper/storage"; - # Keep booting even if the array fails to unlock - options = [ "nofail" ]; + options = [ + "nofail" # Keep booting even if the array fails to unlock + "lazytime" # Reduce atime writes: https://wiki.archlinux.org/title/Fstab#atime_options + "commit=60" # Increase commit interval to 60 seconds to reduce writes: https://wiki.archlinux.org/title/Ext4#Increasing_commit_interval + ]; }; # Optimize RAID performance via udev rules