bare-metal: optimise read speed on NVMe
Alan Pearce alan@alanpearce.eu
Mon, 01 Apr 2024 17:56:40 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
M system/settings/hardware/bare-metal.nix → 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