如何在 RHEL6.8关闭透明大页内存

核能气质少年 提交于 2020-02-26 02:30:34
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)
        root (hd0,0)
       kernel /vmlinuz-2.6.32-300.25.1.el6uek.x86_64 ro root=LABEL=/ transparent_hugepage=never
        initrd /initramfs-2.6.32-300.25.1.el6uek.x86_64.img
[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.

        疫情期间思庄不停学,继续在线上课,重庆思庄红帽RHCE 认证培训班火热报名中,  在线      家学习,虽然效果或进度不如面授,但目前情况特殊,我们也不要浪费掉这些大好时光!有什么不清楚的,我们随时关注或响应你们在线提问!只要是上心的地方,从来不因形式而差效果。预习!蓄势!再到现场面受,效果更好!不影响最终的收获!只要你跟上思庄的步伐!疫情过后一切都将如期盼那般美好!更多详情请访问思庄网站咨询在线客服,谢谢!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!