2010/7/7 Arjan van de Ven <[email protected]>:
> On 7/6/2010 8:39 AM, Carlos Hernan Prada Rojas wrote:
>> Hi all.
>>
>> I would like to ask you, how can I calculate the energy consumption of
>> a process?
>>
>> Does powertop provide any API to be used in a simple C program to do so?
>>
>> Thanks a lot.
>>
>> Regards
>>
>> Carlos Prada
>>
>>
>
>
> this is a really hard question without an easy answer to be honest.
> you can't measure this, the best one can do is make a very high level
> model based on several inputs,
> and then hope it's somewhat resembling reality.
> (inputs like "how long does it run" "how often does it wake up" "does it
> cause other activity" "does it keep devices busy" etc)
>
> I'd love to start building such a model, even if it's on somewhat
> abstract hardware.... but it's not an easy thing to do.
> The worst you can do is present a number, and then if you tune stuff for
> that number, that the actual power/energy gets worse.
>
> _______________________________________________
> Power mailing list
> [email protected]
> http://www.bughost.org/mailman/listinfo/power
>

Agree. Power consumption is not one process's business. It's difficult
to build such model without whole system consideration.

Will Huang

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to