How to save the transparent configuration of huge pages after a reboot?

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?

+4
source share
2 answers

resolved ^ _ ^ Add them to the end of / etc / rc.local

+4
source

In /etc/grub.conf .
Add:

 transparent_hugepage=never 

to the string "core".

0
source

All Articles