Created
November 9, 2025 22:35
-
-
Save theodric/29bda5e2e50ab89bb7b8b0eee336622e to your computer and use it in GitHub Desktop.
/etc/udev/rules.d/60-ioschedulers.rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set BFQ for rotational HDDs | |
| ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq" | |
| ## Set mq-deadline for SATA SSDs | |
| #ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline" | |
| # Set none for SATA SSDs | |
| ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="none" | |
| # Set none for NVMe SSDs | |
| ACTION=="add|change", KERNEL=="nvme[0-9]*", ATTR{queue/scheduler}="none" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment