Professional Documents
Culture Documents
Document 2279458.1
Document 2279458.1
1
Copyright (c) 2023, Oracle. All rights reserved. Oracle Confidential.
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
Oracle Cloud Infrastructure - Version N/A and later
Linux x86
Linux x86-64
SYMPTOMS
/etc/grub.conf
/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.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=15kpinmclg_442&id=2279458.1 1/3
26/12/23, 17:43 Document 2279458.1
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
/etc/grub.conf:
...
kernel /vmlinuz-2.6.32-642.3.1.el6.x86_64 ro root=/dev/mapper/vg_<hostname>-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=15kpinmclg_442&id=2279458.1 2/3
26/12/23, 17:43 Document 2279458.1
sun16 crashkernel=auto rd_LVM_LV=vg_<hostname>/lv_swap rd_LVM_LV=vg_<hostname>/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet numa=off
transparent_hugepage=never fnic.fnic_max_qdepth=256
...
#cat /sys/kernel/mm/transparent_hugepage/enabled
always madvise [never]
REFERENCES
NOTE:1557478.1 - ALERT: Disable Transparent HugePages on SLES11, RHEL6, RHEL7, RHEL8, OL6, OL7, OL8 and UEK2 and above
Didn't find what you are looking for?
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=15kpinmclg_442&id=2279458.1 3/3