Originally Posted by
Rustan
How to enable BFQ on Kernel v.4.12 series?
CONFIG_SCSI_MQ_DEFAULT=y *or* scsi_mod.use_blk_mq=1
Code:
cat /sys/block/sd*/queue/scheduler
[mq-deadline] kyber bfq none
[mq-deadline] kyber bfq none
If I set CONFIG_SCSI_MQ_DEFAULT=y in my kernel configuration, it doesn't work for me. First, the unchanged Ubuntu kernel:
Code:
$ cat /sys/block/sd?/queue/scheduler
noop deadline [cfq]
noop deadline [cfq]
$ uname -a
Linux s15 4.12.0-041200rc5-generic #201706112031 SMP Mon Jun 12 00:32:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Then alter the kernel configuration (I also disable some debug stuff, halving the compile time and kernel size):
Code:
$ scripts/diffconfig .config-4.12.0-041200rc5-generic .config
-DEBUG_INFO_DWARF4 y
-DEBUG_INFO_REDUCED n
-DEBUG_INFO_SPLIT n
-GDB_SCRIPTS y
DEBUG_INFO y -> n
SCSI_MQ_DEFAULT n -> y
And get:
Code:
~$ uname -a
Linux s15 4.12.0-rc5-stockq #262 SMP Thu Jun 15 14:53:52 PDT 2017 x86_64 x86_64 x86_64 GNU/Linux
doug@s15:~$ cat /sys/block/sd?/queue/scheduler
[none]
[none]