怎么在RHEL7上禁用transparent hugepages (THP)
原文标题:
How to disable transparent hugepages (THP) on Red Hat Enterprise Linux 7
原文网址:
https://access.redhat.com/solutions/1320153
环境
- Red Hat Enterprise Linux 7
- transparent hugepages (THP)
- tuned
问题
- How to disable transparent hugepages (THP) on Red Hat Enterprise Linux 7
- Disabling transparent hugepages (THP) on Red Hat Enterprise Linux 7 is not taking effect.
决议
Follow the steps below
Add the "transparent_hugepage=never" kernel parameter option to the grub2 configuration file.
Append or change the "transparent_hugepage=never" kernel parameter on the GRUB_CMDLINE_LINUX option in
/etc/default/grub
file. Only include the parameter once.RawGRUB_CMDLINE_LINUX="rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap ... transparent_hugepage=never"
Rebuild the
/boot/grub2/grub.cfg
file by running the grub2-mkconfig -o command as follows:- Please ensure to take a backup of the existing
/boot/grub2/grub.cfg
before rebuilding.- On BIOS-based machines:
~]# grub2-mkconfig -o /boot/grub2/grub.cfg
- On UEFI-based machines:
~]# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
- On BIOS-based machines:
- Please ensure to take a backup of the existing
Reboot the system and verify option has been added
Reboot the system
Raw# shutdown -r now
Verify the parameter is set correctly
Raw# cat /proc/cmdline
If Transparent Huge Pages (THP) is still not disabled, continue and use one of the options below.
Option 1: (Recommended) create a customized tuned profile with disabled THP
- With this resolution we will create a customized version of the currently running profile. The customized version will disable THP.
Find out which profile is active, create a copy. In the following example we currently use the
throughput-performance
profile:Raw# tuned-adm active Current active profile: throughput-performance
To create customized profile, create a new directory in
/etc/tuned
directory with desired profile name.Raw# mkdir /etc/tuned/myprofile-nothp
Then create a new tuned.conf file for myprofile-nothp, and insert the new tuning info:
Raw# cat /etc/tuned/myprofile-nothp/tuned.conf [main] include= throughput-performance[vm] transparent_hugepages=never
Make the script executable:
Raw# chmod +x /etc/tuned/myprofile-nothp/tuned.conf
Enable myprofile like so:
Raw# tuned-adm profile myprofile-nothp
This change will immediately take effect and persist reboots.
To verify if THP are disabled or not, run below command:
Raw# cat /sys/kernel/mm/transparent_hugepage/enabled
Option 2: (Alternative) Disable tuned services
This resolution will disable the tuned services.
Raw# systemctl stop tuned # systemctl disable tuned
OR
Raw# tuned-adm off
Now add "transparent_hugepage=never" kernel parameter in grub2 configuration file as explained in steps 1-3 above.
- Reboot the server for changes to take effect.
怎么在RHEL7上禁用transparent hugepages (THP)相关推荐
- Centos 禁用Transparent HugePages
QQ交流群:64655993 希望能对您有所帮助!!! 未禁止之前查看状态: [root@locahost ~]# cat /sys/kernel/mm/transparent_hugepage/ ...
- oracle anonhugepage,案例:Oracle linux redhat检查Transparent HugePages状态并关闭
天萃荷净 ALERT: Disable Transparent HugePages on SLES11, RHEL6, OEL6 and UEK2 Kernels 随着去ioe的潮流越来越汹涌,随着内 ...
- Centos7禁用THP(Transparent HugePages)
开启THP精髓是提高内存分配效率,减少CPU SYS开销. 1.首先检查THP的启用状态: [root@localhost ~]# cat /sys/kernel/mm/transparent_hug ...
- linux透明大页内存,rhel7.2 禁用透明的大页内存--transparent_hugepage(THP)
rhel7.2 禁用透明的大页内存--transparent_hugepage(TPH) [root@rac1 tmp]# cat /etc/redhat-release Red Hat Enterp ...
- ubuntu 禁用透明大页_禁用 Transparent Huge Pages (THP) 透明巨大页面
Transparent Huge Pages (THP)是一种Linux内存管理系统,可以通过使用更大的内存页来减少对带有大量内存的机器Translation Lookaside Buffer (TL ...
- linux 内存管理 Transparent HugePages 透明大页 简介
1. 介绍 从RedHat6, RedHat7, OL6, OL7 SLES11 and UEK2 kernels开始,透明大页默认是被开启的以便去改善操作系统的内存管理.透明大页与之前版本的传统意义 ...
- Linux 关于Transparent Hugepages的介绍
透明大页介绍 Transparent Huge Pages的一些官方介绍资料: Transparent Huge Pages (THP) are enabled by default in RHEL ...
- 什么是Transparent HugePages
1.什么是Transparent HugePages? Transparent HugePages是RHEL6的新特性. 为了提升性能,Kernel会将程序缓存在内存中,每页内存以2M为单位. 想要有 ...
- 在Windows 7或Vista(或Windows 8.x,Sorta)上禁用Aero
The Windows Aero Glass interface for Windows 7 or Vista requires a decent video card, you won't be a ...
最新文章
- [技巧]如何获得某个callstack所在线程的线程号?
- 网站推广怎样实现网站设计吸引用户注意完成网站推广指标?
- 小心!智能合约再爆高危漏洞,两大加密货币直接变废纸!
- dubbo web工程示例_带有Dubbo的Spring Cloud Alibaba
- 2021牛客暑期多校训练营4 D-Rebuild Tree(prufer序列+树形dp)
- 代码内查找函数引用_叮~~二级操作题 excel常考函数大梳理
- mysql内表和外表_Hive内表和外表的区别
- qt2-无边框窗口创建、拖拽、阴影
- redis list放入对象_Redis从入门到入土:详细讲解内存模型以及常用命令
- 【操作系统】CPU是如何执行程序的?
- 【操作系统概念-作业4】Threads
- Vue watch 监听复杂对象变化,oldvalue 和 newValue 一致的解决办法。
- 设置浏览器谷歌/edge浏览器允许跨域
- 扩展点系列之ApplicationContextAwareProcessor普通类获取Spring Bean - 第433篇
- openssl工具详解及自建CA方法
- ueditor粘贴word图片无法显示的问题
- cisco 模拟器安装及交换机的基本配置实验心得_「分享」7个必看的Cisco实验
- vue使用 vueQr,html2canvas 实现批量生成二维码并合成海报
- 时隔10年,STM32标准外设库再次升级
- 自动控制原理大作业——已知某位置测控装置如图所示
热门文章
- 英雄联盟手游注册及下载教程(ios及安卓android最新最全版)
- asp.net引用System.Speech实现语音提示
- 【数据分析学习笔记day09】数据分析实战案例:2016美国大选民意调查统计+2016年美国总统大选民意调查数据统计+示例代码1 +示例代码2:
- 双离合档把上按钮作用_大众车自动档档把上的按钮是干什么用的?
- Android 实现视频聊天1对1功能
- netfilter编程实例——一个简单的防火墙
- 【JavaLearn】#(23)JSP相关语法、HTTP协议、Servlet介绍、Servlet生命周期、请求和响应、相对路径、转发和重定向
- 怎么用计算机求逆矩阵,计算机是怎么求解线性方程的(矩阵乘和求逆)
- 为什么我从PR里面导出来的视频,在电脑上可以正常播放,但是上传到天猫、淘宝、抖音、微信等平台后就变的模糊,类似于重影的效果
- maven配置私服地址(公司私服)记录