From 72e9e9dd3b6293ad373111d4d3493601cd88eacf Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 7 Jul 2024 10:48:51 -0400 Subject: [PATCH] Khanda: change I/O scheduler to BFQ --- hosts/Khanda/hardware-configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/Khanda/hardware-configuration.nix b/hosts/Khanda/hardware-configuration.nix index 2eefae4..50c42f3 100644 --- a/hosts/Khanda/hardware-configuration.nix +++ b/hosts/Khanda/hardware-configuration.nix @@ -81,6 +81,11 @@ in }; }; + # Change I/O scheduler to BFQ to try and reduce stuttering under load. + services.udev.extraRules = '' + ACTION=="add|change", KERNEL=="nvme0*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq" + ''; + hardware = { cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; # Enable camera driver