This content has been marked as final. Show 4 replies
Have you tried running the process as root? I have seen comments that this doesn't work as non-privileged users on Linux.
Running OpenJDK 7 (64-bit) this worked as a plain user, but not Java 6 udpate 26 (32-bit or 64-bit)
To enable it for OpenJDK 7, I had to run
But I assume you have this set correctly already.
echo 10000 > /proc/sys/vm/nr_hugepages
Wouldn't that be rather odd unless there is an OS configuration option that is preventing it?
1. Yes, I do run the JVM as root.
2. I should mention that using 2MB pages is okay, but using 1GB page failed. I guess your experiment was for 2MB page (because you allocated 10000 pages).
I am sure OS configuration is correct, because I wrote a C program that can use those allocated 1GB pages.