Setting up HugePages requires one kernel parameter change and modifications to two entries to the /etc/securities/limits.conf file. The kernel parameter that needs to be modified is vm.nr_hugepages. The default hugepage size is 2M. The kernel parameters needs to be set in granules of 2M. For example, if we are allocating 48GB as our hugepage size, we will need to set our kernel parameter to 24576 (48*1024/2) in the /etc/sysctl.conf file.

Respectively, the /etc/security/limits.conf file needs to be adjusted to set soft and hard limits for oracle:

oracle          soft    memlock        50331648
oracle          hard    memlock        50331648

After the kernel parameters are set, it is highly recommended that you reboot the server.

Created by Charles Kim, Oracle ACE Director