如何在 RHEL6.8关闭透明大页内存
发布时间:2020-01-17 00:00:00
如下: To disable Transparent HugePages boot time either one of the following 2 methods may be used: Add the following to the kernel boot line in /etc/grub.conf (a symlink to /boot/grub/grub.conf) and reboot the server (this is the preferred method): [size=90%]transparent_hugepage=never Once modified the line will read similar to the following example: [size=90%]title Oracle Linux Server (2.6.32-300.25.1.el6uek.x86_64) [size=90%] OR Add the following lines in /etc/rc.local and reboot the server (this still can be done on Redhat 7 although rc.local is being deprecated): [size=90%]if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabledfiif test -f /sys/kernel/mm/transparent_hugepage/defrag; then echo never > /sys/kernel/mm/transparent_hugepage/defragfi Please change the file path for RHEL kernel to /sys/kernel/mm/redhat_transparent_hugepage/ accordingly. |