Skip to content
Snippets Groups Projects
Commit 0df65587 authored by Ben Gamari's avatar Ben Gamari
Browse files

rts: Fix --debug-numa mode under Docker

As noted in #17606, Docker disallows the get_mempolicy syscall by
default. This caused numerous tests to fail under CI in the `debug_numa`
way. Avoid this by disabling the NUMA probing logic when --debug-numa is
in use, instead setting n_numa_nodes in RtsFlags.c.
parent ccf35b81
No related branches found
No related tags found
No related merge requests found
......@@ -352,6 +352,8 @@ void initCapabilities (void)
for (i = 0; i < MAX_NUMA_NODES; i++) {
numa_map[i] = 0;
}
} else if (RtsFlags.DebugFlags.numa) {
// n_numa_nodes was set by RtsFlags.c
} else {
uint32_t nNodes = osNumaNodes();
if (nNodes > MAX_NUMA_NODES) {
......
......@@ -985,6 +985,7 @@ error = true;
RtsFlags.GcFlags.numa = true;
RtsFlags.DebugFlags.numa = true;
RtsFlags.GcFlags.numaMask = (1<<nNodes) - 1;
n_numa_nodes = nNodes;
}
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment