Skip to content

Instantly share code, notes, and snippets.

@GrayJack
Created February 15, 2018 02:52
Show Gist options
  • Save GrayJack/a66b67bbf553e19c8a1742b1b6586940 to your computer and use it in GitHub Desktop.
Save GrayJack/a66b67bbf553e19c8a1742b1b6586940 to your computer and use it in GitHub Desktop.
# /etc/udev/rules.d/60-scheduler.rules
#
# set deadline scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"
# set bfq-sq scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq-sq"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment