Skip to content

Instantly share code, notes, and snippets.

@FadeMind
Forked from radupotop/60-scheduler.rules
Created July 8, 2017 10:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FadeMind/38f0adddae25f0b5dfc97c5af0c151ba to your computer and use it in GitHub Desktop.
Save FadeMind/38f0adddae25f0b5dfc97c5af0c151ba to your computer and use it in GitHub Desktop.
kernel 4.12 scheduler rules for udev
# /etc/udev/rules.d/60-scheduler.rules
#
# set none scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="none"
# set bfq scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment