Created
June 15, 2012 15:02
-
-
Save SaveTheRbtz/2936892 to your computer and use it in GitHub Desktop.
/etc/udev/rules.d/80-iosched.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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