title: Count read and write accesses to memory
body: <p>On a Linux machine, I need to count the number of <code>read</code> and <code>write</code> accesses to <code>memory</code> (DRAM) performed by a process. The machine has a NUMA configuration and I am binding the process to access memory from a single remote NUMA node using <code>numactl</code>. The process is running on CPUs in node 0 and accessing memory in node 1. </p>
  
  <p>Currently, I am using <a href="https://perf.wiki.kernel.org/index.php/Main_Page" rel="nofollow">perf</a> to count the number of <code>LLC load miss</code> and <code>LLC store miss</code> events to serve as an estimate for read and write accesses to memory. Because, I guessed LLC misses will need to be served by memory accesses. Is this approach correct i.e. is this event relevant ? And, are there any alternatives to obtain the <code>read</code> and <code>write</code> access information ? </p>
  
  <p>Processor : Intel Xeon E5-4620
  Kernel : Linux 3.9.0+</p>