Skip to content

Instantly share code, notes, and snippets.

@kungfoo
Created February 4, 2013 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kungfoo/4705440 to your computer and use it in GitHub Desktop.
Save kungfoo/4705440 to your computer and use it in GitHub Desktop.
Set scheduler to deadline for SSD disks.
# Handle the scheduler choice according to the type of disk detected
# system default : set cfq scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="cfq"
# SSD specific : set deadline scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment