Hi,
Since from kernel version 5.0 onwards multiqueue I/O scheduling is enabled by default.
We wanted to disable it in our environment using the below kernel parameter:
scsi_mod.use_blk_mq=0
Seems it doesn't work as expected.Please refer screenshot for more details
Any help would be appreciated
Thanks in advance
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Disabling multiqueue I/O schedulers using a kernel parameter is not working in debian11
Re: Disabling multiqueue I/O schedulers using a kernel parameter is not working in debian11
As root:
You need to repeat that every time you reboot the system. So you can put this in something like /etc/rc.local or use a kernel parameter:
in /etc/default/grub
Add the command to the GRUB_CMDLINE_LINUX line which has other parameters and values and do not copy and paste what you see above.
Code: Select all
echo none >/sys/block/sda/queue/scheduler
Code: Select all
GRUB_CMDLINE_LINUX="elevator=noop"
Add the command to the GRUB_CMDLINE_LINUX line which has other parameters and values and do not copy and paste what you see above.
- sunrat
- Administrator
- Posts: 6498
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 118 times
- Been thanked: 476 times
Re: Disabling multiqueue I/O schedulers using a kernel parameter is not working in debian11
Please post terminal output as text in CODE tags rather than a huge image.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
-
- Global Moderator
- Posts: 2716
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 201 times
Re: Disabling multiqueue I/O schedulers using a kernel parameter is not working in debian11
Should be able to use /etc/sysfs.d/ or /etc/sysfs.conf.
Re: Disabling multiqueue I/O schedulers using a kernel parameter is not working in debian11
Thanks for the response.
Have read something like below in an article for HDD
"Avoid using the none/noop I/O schedulers for a HDD as sorting requests on block addresses reduce the seek time latencies and neither of these I/O schedulers support this feature."
As we are using HDD, tried to disable and fall back to the non-multiqueue I/O schedulers using a kernel parameter "scsi_mod.use_blk_mq=0"
The output should be "deadline none" . But it doesn't working in Debian11
Any idea why this parameter is not working as expected in Debian11?
Have read something like below in an article for HDD
"Avoid using the none/noop I/O schedulers for a HDD as sorting requests on block addresses reduce the seek time latencies and neither of these I/O schedulers support this feature."
As we are using HDD, tried to disable and fall back to the non-multiqueue I/O schedulers using a kernel parameter "scsi_mod.use_blk_mq=0"
The output should be "deadline none" . But it doesn't working in Debian11
Any idea why this parameter is not working as expected in Debian11?
Re: Disabling multiqueue I/O schedulers using a kernel parameter is not working in debian11
Not every hardware supports every type of scheduler. Your screenshot shows mq-deadline as the default and none as the only two available options. Choose none for usb-media or ssd and mq-deadline for hard disks.
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Disabling multiqueue I/O schedulers using a kernel parameter is not working in debian11
AFAICS, the module scsi_mod in Debian kernel 5.10 does not support the parameter use_blk_mq any more. You can check with
Code: Select all
modinfo -p scsi_mod
This requires package sysfsutils, not sure it is installed by default.
Or one may use a udev rule triggered when the drive is added. Something like
Code: Select all
ACTION=="add", KERNEL=="sda", ATTR{queue/scheduler}="none"