On 7/7/2014 4:53 PM, Christopher Mansour wrote:
Hello all,
I was wondering if I can use the PowerTop tool in order to observe the power consumption
of a thread. I am doing some experiments which would run on 7 threads at the same
time, I need to know the power consumption of each thread. Is this feasible using the
power top tool and how. I would appreciate your help and feedback.
Powertop, with its internal power model properly trained on the hardware in question, will
attribute power consumption to individual processes.
This is not an exact science; the machine learning model needs a whole bunch of samples to
learn, and the power attribution logic is slightly rudimentary,
but it's also not unreasonable at the same time.
For example a thread gets accounted for the (modelled) CPU power proportional to the time
it consumes, but also for the power of the audio chip if its playing audio
and if you have the right kernel patches, even for the IO it does.