Commit e468af86 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] Only use one NUMA node for mbind tests

The mbind test could end trying to MBIND to too many numanodes at the
same time. Use only one numa node instead.
parent 9a038168
Pipeline #6943 failed with stage
in 7 minutes and 2 seconds
......@@ -87,7 +87,15 @@ int main(int argc, char *argv[])
* default binding policy returns an empty nodemask, so it doesn't
* really help us. We use the numa library directly instead.*/
allowed = numa_get_mems_allowed();
memcpy(nodemask, allowed->maskp, AML_NODEMASK_BYTES);
/* select the first numa node as the one used for this test. */
for(int i = 0; i < AML_MAX_NUMA_NODES; i++)
if(numa_bitmask_isbitset(allowed, i))
AML_NODEMASK_SET(nodemask, i);
/* use MPOL_BIND for checks, and make sure init worked. */
aml_area_linux_mbind_init(&config, MPOL_BIND, nodemask);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment