我想将所有内核版本的所有VM的IO策略更改为noop。(即使将来也有一个更新版本)
cat /sys/block/sda/queue/scheduler
Output as follow
[mq-deadline] kyber bfq none
grubby --update-kernel=ALL --args="elevator=noop"
reboot
Even after applying the following command also, policy was not updated.
"[mq-deadline] kyber bfq none"此外,还尝试了以下命令
Modified the /etc/default/grub with elevator=noop
and ran the command grub2-mkconfig然而,在Centos 8上没有更新IO策略。
在centos 8中,如何将IO策略更新为noop?
发布于 2020-07-08 08:03:48
从内核5.4 elevator=参数中移除。
由于包含了blk,电梯参数不再被考虑,它的实用程序随着遗留IO路径而长期消失,现在也被删除了。
您可以使用udev规则或tuned配置文件
vi /etc/udev/rules.d/60-ioschedulers.rules
# set noop scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="noop"
# set noop scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="noop"发布于 2020-07-09 07:00:10
https://unix.stackexchange.com/questions/597314
复制相似问题