`

Transparent Hugepage is not getting disabled (Doc ID 2279458.1)

 
阅读更多
Transparent Hugepage is not getting disabled (Doc ID 2279458.1) To BottomTo Bottom

In this Document

  Symptoms
  Cause
  Solution
  References

 

APPLIES TO:

Linux OS - Version Oracle Linux 6.8 with Unbreakable Enterprise Kernel [4.1.12] and later
Information in this document applies to any platform.

SYMPTOMS

Trying to disable transparent hugepages. Made the following entries:

/etc/grub.conf

kernel /vmlinuz-2.6.32-642.3.1.el6.x86_64 ro root=/dev/mapper/vg_ho02db02-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg_ho02db02/lv_swap rd_LVM_LV=vg_ho02db02/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet numa=off transparent_hugepage=never fnic.fnic_max_qdepth=256

 

/etc/rc.d/rc.local:
if test −f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test −f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi

Even though the changes have been made the system still shows hugepage is active

CAUSE

The ktune service enables transparent_hugepages by default for all profiles hence anytime a tuned profile is enabled at bootup or manually transparent huge pages gets re-enabled.
 
The below file states the cause of the hugepage getting enabled always even though it is set to never in grub.conf file
/etc/tune-profiles/enterprise-storage/ktune.sh

#!/bin/sh

. /etc/tune-profiles/functions

start() {
  set_cpu_governor performance
  set_transparent_hugepages always ---->>>> set transparent_hugepages always
  disable_disk_barriers
  multiply_disk_readahead 4

  return 0
}

stop() {
  [ "$1" != "restart" ] && restore_cpu_governor
  restore_transparent_hugepages
  enable_disk_barriers
  restore_disk_readahead

  return 0
}

process $@ 

SOLUTION

#service tuned stop
#chkconfig tuned off
#service ktune stop
#chkconfig ktune off


Append transparent_hugepage=never to kernel command line in /boot/grub/grub.conf file

/etc/grub.conf:
...
kernel /vmlinuz-2.6.32-642.3.1.el6.x86_64 ro root=/dev/mapper/vg_ho02db02-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg_ho02db02/lv_swap rd_LVM_LV=vg_ho02db02/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet numa=offtransparent_hugepage=never fnic.fnic_max_qdepth=256
...

Reboot the server and check if  /sys/kernel/mm/transparent_hugepage/enabled changed

#cat /sys/kernel/mm/transparent_hugepage/enabled
always madvise [never]
分享到:
评论

相关推荐

    Ewebeditor License not found. Disabled.doc

    1. License 文件丢失或损坏:如果 License 文件被删除或损坏,Ewebeditor 将无法找到 License,导致 License not found. Disabled。 2. 版本不兼容:如果用户下载的 Ewebeditor 版本与 License 不兼容,也可能导致 ...

    CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.1.0.pdf

    1.1.1.1 Ensure mounting of cramfs filesystems is disabled (Scored) .............................. 20 1.1.1.2 Ensure mounting of freevxfs filesystems is disabled (Scored)............................ 22...

    hsdis-amd64.dll

    解决:Could not load hsdis-amd64.dll; library not loadable; PrintAssembly is disabled 问题.下载对应版本解压得到dll,保存到jdk目录下\jre\bin\server就可以了

    出现问题a is defined高手帮忙

    DragZoomUtil.style([G.mapCover], {background: 'transparent', opacity: 1, filter: 'alpha(opacity=100)'}); DragZoomUtil.style([G.outlineDiv], {left: G.startX + 'px', top: G.startY + 'px', display: '...

    [JEI物品管理器] jei-1.16.5-7.7.0.106.jar.disabled

    ui

    Senfore_DragDrop_v4.1

    It is not sufficient to #define it in the source. If you manage to compile with C++ Builder (any version), I would very much like to know about it. * Delphi's and C++ Builder's HWND and THandle ...

    RS_Disabled.ps1

    RS_Disabled.ps1

    RC_Disabled.ps1

    RC_Disabled.ps1

    CIS_Microsoft_Windows_Server_2008_R2_Benchmark_v3.0.1.pdf

    1.1.6 (L1) Ensure 'Store passwords using reversible encryption' is set to 'Disabled' (Scored) .............................................................................................................

    CIS_Microsoft_Windows_Server_2016_RTM_Release 1607_Benchmark_v1.0.0.pdf

    1.1.6 (L1) Ensure 'Store passwords using reversible encryption' is set to 'Disabled' (Scored) ............................................................................................................

    vsft.doc vsft.doc

    这时你需要修改`/etc/selinux/config`文件,将SELINUX设置为disabled,然后重启机器。 3. **扩展练习:允许匿名用户上传文件**: 默认情况下,Vsftpd不允许匿名用户上传文件。要开启这个功能,需要创建一个上传...

    EurekaLog_7.5.0.0_Enterprise

    27)..Fixed: Ignored unhandled thread exceptions (when EurekaLog is disabled) now triggers default OS processing (WER) 28)..Fixed: Irnored exceptions (via per-exception/events) now bring up default RTL...

    交换机端口状态出现err_disabled的情况分析与解决方法.doc

    交换机端口状态出现err_disabled的情况分析与解决方法.doc

    CIS_Palo_Alto_Firewall_7_Benchmark_v1.0.0

    1.2.4 Ensure valid certificate is set for browser-based administrator interface (Not Scored) .............................................................................................................

    RH850F1L用户手册:软件

    (1) Enabled/disabled..........................................................................................................14 (2) Stopped/running.......................................................

    This is a text based game that lets the user select a direct

    - FILE_ID.DIZ:这是早期软件发布的标准文件,包含程序的简短描述和作者信息。 - treasure.exe:这是游戏的可执行文件,双击运行即可启动游戏。 - Game.frm、Init.Frm、treasure.frm:这些都是Visual Basic的表单...

    高中句子成分.结构分析报告.doc

    8. **介词短语**:如,“To Beijing is not very far.” 9. **从句**:如,“Whenever you are ready will be fine.” 10. **句子**:如,“'How do you do?' is a greeting.” 主语的多样性使得语言表达丰富,能...

    myeclipse 2014 customize persperctive 无法 打开 修复

    1. **插件冲突**:MyEclipse是一款集成了多种插件的IDE,如果安装了与默认透视图管理相关的插件发生冲突,可能会导致此问题。 2. **系统配置错误**:错误的系统配置或者IDE设置可能导致某些功能失效,包括自定义...

Global site tag (gtag.js) - Google Analytics