How can I confirm that a host is NUMA-aware? The Oracle doc says that NUMA-awareness starts at kernel 2.6.19, but the NUMA man page says that it was introduced with 2.6.14. I'd like to be sure that a Java process started with -XX:+UseNUMA
is actually taking advantage of something.
Checking for the numa_maps, I see that I have them:
# find /proc -name numa_maps
/proc/1/task/1/numa_maps
/proc/1/numa_maps
/proc/2/task/2/numa_maps
/proc/2/numa_maps
/proc/3/task/3/numa_maps
Though my kernel is behind what Oracle states:
# uname -sr
Linux 2.6.18-92.el5
I'm currently using 64-bit jdk1.6.0_29 on RHEL5.1.
The Oracle doc also states:
Note: There was a known bug in the Linux Kernel that may cause the JVM to crash when being t with -XX:UseNUMA. The bug was fixed in 2012, so this should not affect the latest versions of the Linux Kernel. To see if your Kernel has this bug, you can run the native reproducer.
Which I have reproduced here to demonstrate its simplicity:
http://docs.oracle.com/javase/7/docs/technotes/guides/vm/reproducer.c
To build the reproducer, you may need to install the numactl or numactl-devel packages depending on your distribution. See
man numa_maps
for details.So, I took the ambiguity to mean that 2.6.19 was the first safe version.
The presence of those /proc files indicates that your linux kernel is numa-aware. Don't concern yourself too much comparing version numbers, as, particularly with Oracle / RHEL kernels, the vendors port/backport many features without keeping the version string "up to date".
Other ways of testing the same thing: