关闭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
网友评论