title: How to measure memory bandwidth currently being used on Linux?
body: <p>I'm writing a small Linux application which logs the computer's power consumption along with CPU utilisation and disk utilisation.  I'd like to add the ability to log memory bandwidth currently being used so I can see how well that correlates with a power consumption.</p>
  
  <p>I understand that I can get information about the amount of memory currently <em>allocated</em> from <code>/proc/meminfo</code> but, of course, that doesn't tell me how much <em>bandwidth</em> is being used at present.  Does anyone know how I could measure memory bandwidth currently in use?</p>
  
  <p><strong>edit</strong>
  I'd like this to work primarily on the x86 and x86-64 platforms</p>