I'm a little confused regarding setting up different schedulers for different drives (SSD and HDD) in the
Wiki for using BFQ. The example using udev, in order to make the HDD's use BFQ, do I just add a second line to the rule and edit it for rotational = 1 and the desired scheduler,
or can the one line be appended with an "else" statement, or does it require a separate rule (e.g. 61-ioscheduler.rule)? I successfully set BFQ to spin drive sda in a VirtualBox guest Arch using the udev example and grub edit, but host is Arch with multiple drives:
sda = SSD ext4
sdb = HDD ext4
sdc = HDD ext4
sdd = HDD ext4
sde = HDD ntfs
I plan to use noop or deadline for the SSD and BFQ for the HDDs. Thanks anyone.
EDIT (current schedulers in use):
Code:
% cat /sys/block/sd*/queue/scheduler
[noop] deadline cfq
noop deadline [cfq]
noop deadline [cfq]
noop deadline [cfq]
noop deadline [cfq]
and available schedulers:
Code:
% zgrep IOSCHED /proc/config.gz
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_CFQ_GROUP_IOSCHED=y
CONFIG_DEFAULT_IOSCHED="cfq"
CONFIG_MQ_IOSCHED_DEADLINE=y
CONFIG_MQ_IOSCHED_KYBER=y
CONFIG_IOSCHED_BFQ=y
CONFIG_BFQ_GROUP_IOSCHED=y