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.
With change @26239, os_tweaks.sh is now only dependent on the format of the target files to be updated, which is dependent on the Linux kernel rather than the Linux flavor/distro. So that little bit has been improved, and will address the issue on Amazon Linux. We still need to address the core issue raised here, making the changes stick.
I have a solution for this, and plan to include it in SDP r21.1. Basic idea: For systems using systemd (which, for better or worse, is everywhere), we can configure a systemd *.service file for the os_tweaks.sh script with a 'Type' value of 'oneshot', suited for this sort of 'run once on boot' situation. FYI for @robert_cowham.
Just wanted to point out that disabling THP has changed in RHEL8. I opened a support case about it (00780768) and John updated the KB article at https://community.perforce.com/s/article/3005 to note that grub is the preferred way to handle this.
With change @26239, os_tweaks.sh is now only dependent on the format of the target files to be updated, which is dependent on the Linux kernel rather than the Linux flavor/distro. So that little bit has been improved, and will address the issue on Amazon Linux. We still need to address the core issue raised here, making the changes stick.
I have a solution for this, and plan to include it in SDP r21.1. Basic idea: For systems using systemd (which, for better or worse, is everywhere), we can configure a systemd *.service file for the os_tweaks.sh script with a 'Type' value of 'oneshot', suited for this sort of 'run once on boot' situation. FYI for @robert_cowham.
Just wanted to point out that disabling THP has changed in RHEL8. I opened a support case about it (00780768) and John updated the KB article at https://community.perforce.com/s/article/3005 to note that grub is the preferred way to handle this.
Thanks, @Domenic! We'll refine this script to ensure it delivers platform-version-specific best practices.
Also FYI we added another script of John's to the SDP, but it's not yet called. That script is Server/Unix/setup/parse_sysctl.pl.