summary refs log tree commit diff stats
path: root/system/settings/hardware
diff options
context:
space:
mode:
authorAlan Pearce2024-04-01 17:56:40 +0200
committerAlan Pearce2024-04-01 17:56:40 +0200
commit19bee11884e7254945bc28a119a91e5e419efdf2 (patch)
treede2931abb37b4b5b5d97c18a7c446aab08b5aa15 /system/settings/hardware
parentf33f803371569bbaf527190b5cb7ab038bb1fe60 (diff)
downloadnixfiles-19bee11884e7254945bc28a119a91e5e419efdf2.tar.lz
nixfiles-19bee11884e7254945bc28a119a91e5e419efdf2.tar.zst
nixfiles-19bee11884e7254945bc28a119a91e5e419efdf2.zip
bare-metal: optimise read speed on NVMe
Diffstat (limited to 'system/settings/hardware')
-rw-r--r--system/settings/hardware/bare-metal.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/settings/hardware/bare-metal.nix b/system/settings/hardware/bare-metal.nix
index d49e9d41..9d870a40 100644
--- a/system/settings/hardware/bare-metal.nix
+++ b/system/settings/hardware/bare-metal.nix
@@ -22,7 +22,8 @@
   };
   services.udev.extraRules = ''
     # set scheduler for NVMe
-    ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/scheduler}="none"
+    ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/scheduler}="kyber"
+    ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/iosched/read_lat_nsec}="100000"
     # set scheduler for SSD and eMMC
     ACTION=="add|change", KERNEL=="sd[a-z]|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline"
     # set scheduler for rotating disks