How to measure energy consumption of a process in linux without any external hardware meter?

1.7k Views Asked by At

I had tried googling for it and had found MSR_PKG_ENERGY_STATUS under RAPL but unfortunately it has support for only newer processors like Sandy Bridge, Ivy Bridge etc. Is there any other way to get it in older processors?

This is my processor : http://ark.intel.com/products/50176/Intel-Pentium-Processor-P6200-3M-Cache-2_13-GHz

I am not looking for a method just for this specific one but trying to find all the possible options for the models older than Sandy Bridge.

1

There are 1 best solutions below

0
On

Install powertop then run powertop with root permission.

In ubuntu:

Install: sudo apt-get install powertop

Run: sudo powertop