centos 7.3中使能blk-mq

前端之家收集整理的这篇文章主要介绍了centos 7.3中使能blk-mq前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

scsi-mq

RHEL7.2 release note

使能scsi-mq

添加scsi_mod.use_blk_mq=y到内核命令行:(也可以添加dm_mod.use_blk_mq=y来使能blk-mq,减少DM层的开销)

1
2
3
4
5
6
7
8
9
10
11
$ cat /etc/default/grub 
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's,release .*$,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.md.uuid=c13f982e:9af61476:91e4a31e:1bc18c08 scsi_mod.use_blk_mq=y dm_mod.use_blk_mq=y rhgb quiet"
GRUB_DISABLE_RECOVERY="true"

$ grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
$ reboot

确保使能成功

1
tree /sys/class/block/sdl/mq /sys/class/block/dm-0/mq
原文链接:https://www.f2er.com/centos/376432.html

猜你在找的CentOS相关文章