all repos — nixfiles @ 19bee11884e7254945bc28a119a91e5e419efdf2

System and user configuration, managed by nix and home-manager

bare-metal: optimise read speed on NVMe
Alan Pearce alan@alanpearce.eu
Mon, 01 Apr 2024 17:56:40 +0200
commit

19bee11884e7254945bc28a119a91e5e419efdf2

parent

f33f803371569bbaf527190b5cb7ab038bb1fe60

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M system/settings/hardware/bare-metal.nixsystem/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