SDP-442

Robert Cowham
Open
os_tweaks.sh does not permanently disable THP transparent huge pages

It only does it for the running system, but on reboot things will be back to previous state.

Options include advising the user what to do, or just doing it.

Update - this seems to be easiest way to do things:
https://askubuntu.com/questions/597372/how-do-i-modify-sys-kernel-mm-transparent-hugepage-enabled/610707#610707

So using sysfsutils package - available for Unbuntu and CentOS and not dependent on systemd vs rc.local.

Old way:

For example /etc/rc.local can be updated to contain:

if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
   echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi

But this doesn't work on CentOS 7 for example without turning on rc.local service.

https://www.thegeekdiary.com/how-to-execute-scripts-commands-using-etc-rc-d-rc-local-in-centos-rhel-7/

Investigations required perhaps.

Also we should update os_tweaks.sh for AWS Linux/Linux 2
Status
Open
Project
perforce-software-sdp
Severity
B
Reported By
robert_cowham
Reported Date
Modified By
tom_tyler
Modified Date
Owned By
robert_cowham
Component
setup
Type
Bug