Retrieving the Current Status of Transparent HugePages

This procedure shows how to see the current status of THP in the sysfs virtual file system.

For more information about using the sysfs virtual file system, see Oracle Linux 8: Managing Kernels and System Boot

To see the current setting of THP you can read the /sys/kernel/mm/transparent_hugepage/enabled parameter.

  1. Use the cat command to view the current value of the THP in the sysfs.
    cat /sys/kernel/mm/transparent_hugepage/enabled
    [always] madvise never

    The value inside the square brackets represents the current setting.