THP Transparent HugePages 相关知识与关闭
来源:互联网 发布:淘宝新店怎么刷流量 编辑:程序博客网 时间:2024/05/16 18:13
最近遇到个LINUX系统内存比较大,未开 HugePages,业务有变化导致ORACLE连接数剧增至上千个,PageTables达到上百G,导致内存不足系统HANG住的案例。
因此需要开启 HugePages,操作系统是OEL6以上的。LINUX的以下版本:Red Hat Enterprise Linux 6, SUSE Linux Enterprise Server 11, and Oracle Linux 6 with earlier releases of Oracle Linux Unbreakable Enterprise Kernel 2 (UEK2) kernels. Transparent HugePages是默认开启的,因此在这些版本的LINUX系统中,ORACLE强烈建议开启HugePages需要关闭Transparent HugePages。
在以下版本的LINUX中Transparent HugePages默认是关闭--从内核移除的。
Transparent HugePages memory is disabled in later releases of Oracle Linux UEK2 kernels.
验证方法是:如果以下文件不存在,则是THP已经从内核中移除。
/sys/kernel/mm/transparent_hugepage
or/sys/kernel/mm/redhat_transparent_hugepage
参考MOS文档:ALERT: Disable Transparent HugePages on SLES11, RHEL6, OL6 and UEK2 Kernels (文档 ID 1557478.1)
或者OEL的以下文档:
https://docs.oracle.com/cd/E11882_01/install.112/e41961/memry.htm#CWLIN385
C.3 Disabling Transparent HugePages
Transparent HugePages memory is enabled by default with Red Hat Enterprise Linux 6, SUSE Linux Enterprise Server 11, and Oracle Linux 6 with earlier releases of Oracle Linux Unbreakable Enterprise Kernel 2 (UEK2) kernels.Transparent HugePages memory is disabled in later releases of Oracle Linux UEK2 kernels.
Transparent HugePages can cause memory allocation delays during runtime. To avoid performance issues,Oracle recommends that you disable Transparent HugePages on all Oracle Database servers.Oracle recommends that you instead use standard HugePages for enhanced performance.
Transparent HugePages memory differs from standard HugePages memory because the kernel khugepaged thread allocates memory dynamically during runtime. Standard HugePages memory is pre-allocated at startup, and does not change during runtime.
o check if Transparent HugePages memory is enabled, run one of the following commands as theroot
user:Red Hat Enterprise Linux kernels:
# cat /sys/kernel/mm/redhat_transparent_hugepage/enabled
Other kernels:
# cat /sys/kernel/mm/transparent_hugepage/enabled
The following is a sample output that shows Transparent HugePages memory being used as the[always]
flag is enabled.
[always] never
Note:
If Transparent HugePages is removed from the kernel, then the/sys/kernel/mm/transparent_hugepage
or /sys/kernel/mm/redhat_transparent_hugepage
files do not exist.To disable Transparent HugePages, perform the following steps:
Add the following entry to the kernel boot line in the
/etc/grub.conf
file:transparent_hugepage=never
For example:
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
Restart the system to make the changes permanent.
- THP Transparent HugePages 相关知识与关闭
- 如何将Transparent HugePages关闭
- Tokudb引擎安装为啥需要关闭Transparent HugePages
- Transparent HugePages 详解
- Disabling Transparent HugePages
- ubuntu关闭THP
- Hadoop集群优化-关闭THP
- Linux的Transparent Hugepage与关闭方法
- Linux 关于Transparent Hugepages的介绍
- 大页(huge pages) 系列四 ---Transparent HugePages
- voltdb开启时遇到Transparent huge pages (THP) not supported问题
- Hadoop平台关闭THP解决服务器高负载问题
- Hadoop平台关闭THP解决服务器高负载问题
- Hadoop平台关闭THP解决服务器高负载问题
- hugepages
- hugepages
- hugepages
- 有关闭包的相关知识整理
- 计算下载文件大小并写入本地文件和清理缓存
- 常用hash函数
- UITextField与键盘——IOS
- delphi dbgrideh导出到Excel 多表头
- jvm监控工具jconsole进行远程监控配置
- THP Transparent HugePages 相关知识与关闭
- pyspark
- UNIX环境高级编程-第4章- 文件和目录 - 二
- iOS json解析 和生成json串
- oracle数据库备份恢复
- js 倒计时
- Linux中硬链接和软链接的区别和联系
- zookeeper 服务器安装(1,单一实例zookeeper及其监控)
- nature,science上关于计算机视觉的一些原创文献