[root@dbserver setup]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
[root@dbserver setup]# uname -r
3.10.0-957.el7.x86_64
[root@dbserver setup]#
[root@dbserver ~]# cat /sys/kernel/mm/transparent_hugepage/enabled
[always] madvise never
[root@dbserver ~]#
看来是开启的
2.修改内核启动选项
vim /etc/default/grub
...
GRUB_CMDLINE_LINUX="rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap ... transparent_hugepage=never"
3.重建启动菜单
grub2-mkconfig -o /boot/grub2/grub.cfg
。。。
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-957.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-26efdcc83a1e41679614c0a19f381de5
Found initrd image: /boot/initramfs-0-rescue-26efdcc83a1e41679614c0a19f381de5.img