From 8a76d06797c34db9997518db177531bae135cf46 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Wed, 9 Dec 2015 16:46:29 +0200 Subject: [PATCH] memory: be less strict about NUMA bindings If we can't find memory on the local node (may happen with odd --smp specification), it is better to use non-local memory than to abort. --- core/memory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/memory.cc b/core/memory.cc index db2339457..138e5251e 100644 --- a/core/memory.cc +++ b/core/memory.cc @@ -1019,7 +1019,7 @@ void configure(std::vector m, #ifdef HAVE_NUMA unsigned long nodemask = 1UL << x.nodeid; auto r = ::mbind(cpu_mem.mem() + pos, x.bytes, - MPOL_BIND, + MPOL_PREFERRED, &nodemask, std::numeric_limits::digits, MPOL_MF_MOVE);