4 Replies Latest reply: Aug 2, 2011 8:08 PM by 879548 RSS

    how to use 1GB pages in Linux?

    879548
      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.