Skip to content

Instantly share code, notes, and snippets.

@wido
Last active July 13, 2023 14:17
Show Gist options
  • Save wido/66cba7abb200ee4aec6a to your computer and use it in GitHub Desktop.
Save wido/66cba7abb200ee4aec6a 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 <[email protected]>
# 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"
@jnemeiksis
Copy link

Hi, deadline is still using for SSDs?

@wido
Copy link
Author

wido commented Feb 2, 2021

Hi, deadline is still using for SSDs?

From what I know noop is the best and newer kernels >5.3 use something different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment