4

I used the below way to disable transparent hugepages. But they are restored (enabled again) after reboot.

echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag
echo no > /sys/kernel/mm/redhat_transparent_hugepage/khugepaged/defrag

How to keep those modified after reboot?

chicks
  • 2,393
  • 3
  • 24
  • 40
Bin
  • 83
  • 2
  • 8

2 Answers2

4

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

Bin
  • 83
  • 2
  • 8
0

In /etc/grub.conf.
Add:

transparent_hugepage=never 

to the "kernel" line.

ketan
  • 19,129
  • 42
  • 60
  • 98
Borko
  • 1