Skip to content

Instantly share code, notes, and snippets.

@tonylambiris
Forked from radupotop/60-scheduler.rules
Last active March 7, 2018 23:16
Show Gist options
  • Save tonylambiris/a051d907bd6b3a1f8a73350a50347dcc to your computer and use it in GitHub Desktop.
Save tonylambiris/a051d907bd6b3a1f8a73350a50347dcc 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]|mmcblk[0-9]*|nvme[0-9]*|loop[0-9]*", 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