Pages

Sunday, May 22, 2011

Configuring HugePages with Oracle JRockit JVM

Making JRockit JVM use Linux hugepages requires the following 2 configurations:

[1] Mount hugetlbfs
mount -t hugetlbfs nodev /mnt/hugepages
chmod 777 /mnt/hugepages

[2] Use JVM options
-XXaggressive: usually auto enables hugepages, and will use hugepages, if enough available
-Xlargepages: explicitely enables hugepages, and will use if enough hugepages are configured on the system
-Xlargepages:exitOnFailure=true: Will exit if could not use hugepages for any reason

No comments:

Post a Comment