title: Mongodb in Docker: numactl --interleave=all explanation
body: <p>I'm trying to create <code>Dockerfile</code> for in-memory MongoDB based on official repo at <a href="https://hub.docker.com/_/mongo/" rel="noreferrer">https://hub.docker.com/_/mongo/</a>.</p>
  
  <p>In <code>dockerfile-entrypoint.sh</code> I've encountered:</p>
  
  <pre><code>numa='numactl --interleave=all'
  if $numa true &amp;&gt; /dev/null; then
      set -- $numa "$@"
  fi
  </code></pre>
  
  <p>Basically it prepends <code>numactl --interleave=all</code> to original docker command, when <code>numactl</code> exists. </p>
  
  <p>But I don't really understand this NUMA policy thing. Can you please explain what NUMA really means, and what <code>--interleave=all</code> stands for? </p>
  
  <p>And why do we need to use it to create MongoDB instance? </p>