This optimization guide is a very interesting book.<p>there is another article &quot;What Every Programmer Should Know About Memory&quot; by Ulrich Drepper  <a href="http:&#x2F;&#x2F;www.akkadia.org&#x2F;drepper&#x2F;cpumemory.pdf" rel="nofollow">http:&#x2F;&#x2F;www.akkadia.org&#x2F;drepper&#x2F;cpumemory.pdf</a> ; it has a section on how to optimize memory access &#x2F; tools that help in the process.<p>I put up my notes&#x2F;summary on this article (more like a book with a 100+ pages) <a href="http:&#x2F;&#x2F;mosermichael.github.io&#x2F;cstuff&#x2F;all&#x2F;blog&#x2F;2015&#x2F;12&#x2F;11&#x2F;wepskn.html" rel="nofollow">http:&#x2F;&#x2F;mosermichael.github.io&#x2F;cstuff&#x2F;all&#x2F;blog&#x2F;2015&#x2F;12&#x2F;11&#x2F;wep...</a>