Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mainframe/24c979824f3ac5648d38130c7e90bcd8 to your computer and use it in GitHub Desktop.
Save mainframe/24c979824f3ac5648d38130c7e90bcd8 to your computer and use it in GitHub Desktop.
ceph-udev-disk-scheduler.rules
# udev rule to set disk schedulers for Ceph
# For spinning disks we want the CFQ scheduler so that we can set
# priorities on client and recovery I/O threads
#
# Author: Wido den Hollander <wido@42on.com>
# Date: July 2015
# Use deadline for SSDs
ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"
# Use CFQ for HDDs
ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="cfq"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment