Is there any API / way to get a "distance" (called "hops" in the literature) between two NUMA nodes? I want to implement a memory allocation system that uses this (reusing memory from the nearest node because access is faster).
Windows doesn't seem to have such a feature ... and libnuma (under Linux) doesn't seem to have this. Is there any way to get this information (even with something like "cpuid")?
source
share