4 Replies Latest reply on Aug 3, 2011 1:08 AM by 879548

    how to use 1GB pages in Linux?

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

      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.