How to measure memory bandwidth currently being used on Linux?

前端 未结 1 1843
耶瑟儿~
耶瑟儿~ 2021-02-08 02:50

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

相关标签:
1条回答
  • 2021-02-08 03:17

    It's highly CPU-dependent but you'll need to be able to get access to the CPU's performance registers. You may be able to do this via oprofile. Note that not all CPUs have a performance register (or combination of registers) which can be used to calculate to memory bandwidth usage, however.

    0 讨论(0)
提交回复
热议问题