Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to use 1GB pages in Linux?

879548Aug 1 2011 — edited Aug 2 2011
I found the "-XX:+UseLargePages -XX:LargePageSizeInBytes=1G" does not work in Linux (JVM 1.6.0_26), does anybody see the same problem?

Details:
I use kernel parameters "hugepagesz=1GB hugepages=6 default_hugepagesz=1GB" to explicitly allocate some 1GB pages in Linux, and the reserved 1GB pages can be seen in /proc/meminfo. Then I use JVM options "-XX:+UseLargePages -XX:LargePageSizeInBytes=1G -Xmx6g -Xms6g" to run the JVM, but the "HugePages_Free" in /proc/meminfo remains unchanged, so I think the JVM was not using 1GB pages.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2011
Added on Aug 1 2011
4 comments
1,223 views