Disable Transparent Huge Pages (THP)

Hi,

I’m trying to install and run VoltDB Enterprise but I got a response that THP has to be disabled.
I tried to run the following commands:
echo never >/sys/kernel/mm/transparent_hugepage/enabled
echo never >/sys/kernel/mm/transparent_hugepage/defrag
but files are read-only.

Anyone can help?

From inside a container you can not modified the THP. 2 solutions:

  • Do it on the host before starting the container
  • Start the container in privileged mode and then you should be able to modify it

If you want to keep it after a reboot you need to modify /etc/sysctl.conf

Thanks for the info.
Can you please explain any of the approaches in more details? I use Docker for Windows(Hyper-V) and I’m not sure how to change it on host level neither how to start it in privileged mode.

You made my day, thanks a lot. :slight_smile: