title: Using perf to monitor memory access of every CPU
body: <p>I'm trying to use the <code>linux perf tool</code> to sample the memory accesses in my program. Specifically, I'm using perf to monitor read/write access of every CPU in NUMA.</p>
  
  <p>Now, I can monitor <strong>every single</strong> CPU's read and write memory access, but I also have to know whether the access is a local memory access or a remote memory access. </p>
  
  <p>I have used perf list to go through the events list, but I just find out some events about socket's memory access.</p>
  
  <p>Questions</p>
  
  <ol>
  <li>Is there any way to get every single CPU's <strong>remote memory access</strong>, when using <code>perf</code> ?</li>
  <li>Is there a better option than <code>perf</code> ?</li>
  </ol>