美文网首页
UEFI启动方式下Linux关闭numa

UEFI启动方式下Linux关闭numa

作者: frankie_cheung | 来源:发表于2021-08-22 15:02 被阅读0次

关闭numa可以使主机部署的MySQL服务不使用swap空间

关闭如下:
1.在auto后添加numa=off
vi /etc/default/grub
GRUB_CMDLINE_LINUX="console=tty0 crashkernel=auto numa=off"
2.重建grub配置文件
grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
3.重启主机生效
reboot
4.再次安装命令.
yum install numactl -y
5.检查,输出为N,关闭成功
numactl --hardware |grep "1 nodes" &>/dev/null && echo N || echo Y

相关文章

网友评论

      本文标题:UEFI启动方式下Linux关闭numa

      本文链接:https://www.haomeiwen.com/subject/zeaciltx.html