Skip to content

Commit

Permalink
memory: be less strict about NUMA bindings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
avikivity committed Dec 9, 2015
1 parent c324e58 commit 8a76d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ void configure(std::vector<resource::memory> 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<unsigned long>::digits,
MPOL_MF_MOVE);

Expand Down

0 comments on commit 8a76d06

Please sign in to comment.