Thu, 06 Jul 2017 20:24:37 +0300 Andrei Borzenkov
06.07.2017 16:41, Takashi Iwai пишет:
On Tue, 04 Jul 2017 22:28:23 +0200, Dmitriy A. Perlow wrote:
Is BFQ enabled for kernel builds? I tried elevator=bfq with 4.12.rc7 and got all partitions unmountable.
On 4.12, BFQ is available as multi-queue I/O scheduler, so it's a two step enablement:
- Pass scsi.use_blk_mq=1 boot option to switch to SCSI MQ.
scsi_mod.use_blk_mq=1 Thanks. It works ok ;)
- Choose bfq in /sys/block/sd*/queue/scheduler file, e.g. # echo bfq > /sys/block/sda/queue/scheduler
The latter can be automated via udev, tmpfiles.d or whatever, too.
Can it be set as global default for all devices?
/etc/udev/rules.d/60-sched.rules : #set bfq scheduler for non-rotating disks ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq" # set bfq scheduler for rotating disks ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq" -- Best regards, Dmitriy Perlow -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org