Integrated: 8371701: Add ability to set NUMA-affinity for threads
Joel Sikström
jsikstro at openjdk.org
Mon Nov 24 13:44:06 UTC 2025
On Wed, 12 Nov 2025 10:22:39 GMT, Joel Sikström <jsikstro at openjdk.org> wrote:
> Hello,
>
> This PR adds support for setting the affinity of threads to run on CPUs associated with specific NUMA nodes on Linux. Support for this is needed for [JDK-8371702](https://bugs.openjdk.org/browse/JDK-8371702) to improve performance in the Relocation Phase of ZGC on a NUMA machine.
>
> Testing:
> * I've run significant performance testing locally on a NUMA machine and performed functional testing to see that the affinity is actually changed. Affinity of a thread can be inspected on Linux using `taskset -cp <tid>`.
> * Running through Oracle's tier1-2
This pull request has now been integrated.
Changeset: 0a963b61
Author: Joel Sikström <jsikstro at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0a963b612d0fcbfe002340098341862096650945
Stats: 103 lines in 6 files changed: 103 ins; 0 del; 0 mod
8371701: Add ability to set NUMA-affinity for threads
Reviewed-by: aboldtch, ayang
-------------
PR: https://git.openjdk.org/jdk/pull/28261
More information about the hotspot-runtime-dev
mailing list