Software >> OS >> Unix >> Linux >> RHEL >> How to check whether transparent huge pages is enabled and how to enable or disable

To check if Transparent HugePages is enabled run one of the following commands as

the root user:

Red Hat Enterprise Linux kernels:

# cat /sys/kernel/mm/redhat_transparent_hugepage/enabled

Other kernels:

# cat /sys/kernel/mm/transparent_hugepage/enabled

 

The following is a sample output that shows Transparent HugePages is being used as

the [always] flag is enabled.

[always] never

 

To disable Transparent HugePages perform the following steps:

1. Add the following entry to the kernel boot line in the /etc/grub.conf file:

transparent_hugepage=never