为什么要用 flag 告诉 JAVA 关于 NUMA?

Why tell JAVA about NUMA with flag?

我有系统。它是 Java 并使用多线程。还有 24 CPU 启用了 NUMA。为什么要用 -XX:+UseNUMA 告诉 JAVA 的 NUMA?是不是 OS 已经知道 NUMA 并且会处理好?

我有 运行 google 但没有找到这个答案。这个不说了:

谢谢你

这是 open issue since 2012. There were also some problem pre-Java 11. Unless enabling it is an automatic performance improvement without side effects on the multitude of possible configuration and scenario, it's unlikely to happen. That said, at least one GC, namely zgc 默认启用 NUMA。