summaryrefslogtreecommitdiff
path: root/sys-apps/baselayout/files/ioschedcfg
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/baselayout/files/ioschedcfg')
-rw-r--r--sys-apps/baselayout/files/ioschedcfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-apps/baselayout/files/ioschedcfg b/sys-apps/baselayout/files/ioschedcfg
new file mode 100644
index 00000000..9047bd4a
--- /dev/null
+++ b/sys-apps/baselayout/files/ioschedcfg
@@ -0,0 +1,6 @@
+# set mq-deadline scheduler for non-rotating disks (SATA SSDs)
+ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline"
+# set bfq scheduler for rotating disks (SATA HDDs)
+ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
+# set mq-deadline scheduler for non-rotating nvme-disks (NVME SSDs)
+ACTION=="add|change", KERNEL=="nvme[0-9]n1", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline"