From 67b25353ea1486575af0c46f0f5e5940dffc7d76 Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 20 Apr 2024 10:40:18 -0500 Subject: [PATCH] I think this solves my io bottlenecks --- system/hardware-configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/hardware-configuration.nix b/system/hardware-configuration.nix index 86b0e83..910aa09 100644 --- a/system/hardware-configuration.nix +++ b/system/hardware-configuration.nix @@ -48,6 +48,13 @@ wantedBy = [ "suspend.target" ]; }; + boot.kernel.sysctl = { + "vm.swappiness" = 90; + "vm.vfs_cache_pressure" = 50; + "vm.dirty_background_ratio" = 2; + "vm.dirty_ratio" = 5; + }; + services.btrfs.autoScrub = { enable = true; interval = "weekly";