Skip to content

Instantly share code, notes, and snippets.

@SaveTheRbtz
Created June 15, 2012 15:02
Show Gist options
  • Save SaveTheRbtz/2936892 to your computer and use it in GitHub Desktop.
Save SaveTheRbtz/2936892 to your computer and use it in GitHub Desktop.
/etc/udev/rules.d/80-iosched.rules
root@ws36-000:~# cat /etc/udev/rules.d/80-iosched.rules
# Default CFQ settings does not perform well in our environment. Switch it to
# IOPS mode and use NCQ.
#
# XXX: This applies even for SATA drives. If you want to disable IOPS mode on
# SATA drives uncomment following line:
#ENV{ID_BUS}=="ata", GOTO="end_iosched"
SUBSYSTEM!="block", GOTO="end_iosched"
KERNEL=="dm-*", GOTO="end_iosched"
ENV{DEVTYPE}=="partition", GOTO="end_iosched"
ACTION!="add|change", GOTO="end_iosched"
ATTR{queue/scheduler}!="*\[cfq\]", GOTO="end_iosched"
ATTR{queue/iosched/slice_idle}="0"
ATTR{queue/iosched/quantum}="32"
LABEL="end_iosched"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment