Databases Reference
In-Depth Information
Enabling Linux HugePages
Enabling Linux HugePages can improve the performance of the Oracle JRockit JVM and have
several advantages over the default page size of 4 KB in Linux.
In this recipe, the HugePages will be enabled on all machines in the PROD_DOMAIN
domain. A new JVM parameter will be added to the Managed Servers so the JVM makes
use of the HugePages.
prod01 hosts the PROD_Server01 and PROD_Server02 Managed Servers. Since each
instance is configured with a heap size of 2 GB, reserving 4 GB for HugePages in prod01
should be enough.
Getting ready
Before configuring the Linux HugePages, shut down all WebLogic Servers in the domain.
Also stop the Administration Console instance and the Node Manager.
How to do it...
To enable the Linux HugePages, you must log in as root user:
1. Log in as root user to the shell and execute the following commands to check the
HugePages configuration:
[root@prod01]$ cat /proc/meminfo | grep Huge
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB
2. Create a mount point of type hugetlbfs :
[root@prod01]$ mkdir /mnt/hugepages
[root@prod01]$ chmod -R 777 /mnt/hugepages
[root@prod01]$ mount -t hugetlbfs nodev /mnt/hugepages
3. Add the following mount point to the /etc/fstab :
[root@prod01]$ vi /etc/fstab
4. Add the following line:
hugetlbfs /mnt/hugepages hugetlbfs rw,mode=0777 0 0
 
Search WWH ::




Custom Search