I used the method below to turn off transparent huge pages. But after rebooting, they are restored (turn on again).
echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag echo no > /sys/kernel/mm/redhat_transparent_hugepage/khugepaged/defrag
How to save changes after reboot?
source share