Skip to contentSkip to conversation

How does powertop deal with multiple executions

Powertop Jesús Díaz Vico <jesus.diaz.vico at gmail.com> 2 participants 5 messages Oct 28, 2013 – Oct 29, 2013

lore
Share & tools
lore

Jesús Díaz Vico <jesus.diaz.vico at gmail.com>

#0 lore raw

Hello,

I'm trying to estimate the power consumption (besides some other properties) of a custom program. During my tests, I execute my program several times (it is not a background process) with powertop running. My doubt is: how does powertop deal with these multiple executions?

I'd guess that it averages over the number of executions, because I'm obtaining very similar power consumption measurements for both 500 and 5000 executions of my program (335 mW and 364 mW, respectively). Still, there is the possibility that powertop only keeps the estimation corresponding to the last execution...

Thanks.

#1 lore raw
Quoted 9 lines · Jesús Díaz Vico

Hello,

I'm trying to estimate the power consumption (besides some other properties) of a custom program. During my tests, I execute my program several times (it is not a background process) with powertop running. My doubt is: how does powertop deal with these multiple executions?

I'd guess that it averages over the number of executions, because I'm obtaining very similar power consumption measurements for both 500 and 5000 executions of my program (335 mW and 364 mW, respectively). Still, there is the possibility that powertop only keeps the estimation corresponding to the last execution...

Thanks.

by default, powertop will group programs with the same name into one bucket for display purposes.

#2 lore raw

Thank you, Arjan.

But my question is how does powertop group programs with the same name.

Unless I'm doing something wrong, I doubt that it is just adding the power consumption of all the independent executions. I say this because powertop estimates a consumption of 335 mW for 500 executions, and a consumption of 364 mW for 5000. I am configuring the monitorization time with the --time parameter (with a value long enough to cover all the 500 or 5000 executions).

Is it calculating an average then?

Quoted 24 lines · Arjan van de Ven
Quoted 8 lines · Jesús Díaz Vico

Hello,

I'm trying to estimate the power consumption (besides some other properties) of a custom program. During my tests, I execute my program several times (it is not a
background process) with powertop running. My doubt is: how does powertop deal with these multiple executions?

Quoted 8 lines

I'd guess that it averages over the number of executions, because I'm obtaining very similar power consumption measurements for both 500 and 5000 executions of my program
(335 mW and 364 mW, respectively). Still, there is the possibility that powertop only keeps the estimation corresponding to the last execution...

Thanks.

by default, powertop will group programs with the same name into one bucket for display purposes.

Signature · 1 line
Jesús Díaz Vico
#3 lore raw
Quoted 10 lines · Jesús D

Thank you, Arjan.

But my question is how does powertop group programs with the same name.

Unless I'm doing something wrong, I doubt that it is just adding the power consumption of all the independent executions. I say this because powertop estimates a consumption of 335 mW for 500 executions, and a consumption of 364 mW for 5000. I am configuring the monitorization time with the --time parameter (with a value long enough to cover all the 500 or 5000 executions).

Is it calculating an average then?

remember Watts are a "Joules per second" measure!

#4 lore raw

Facepalm... Thanks!

Quoted 21 lines · Arjan van de Ven
Quoted 12 lines · Jesús D

Thank you, Arjan.

But my question is how does powertop group programs with the same name.

Unless I'm doing something wrong, I doubt that it is just adding the power consumption of all the independent executions. I say this because powertop estimates a
consumption of 335 mW for 500 executions, and a consumption of 364 mW for 5000. I am configuring the monitorization time with the --time parameter (with a value long enough
to cover all the 500 or 5000 executions).

Quoted 3 lines

Is it calculating an average then?

remember Watts are a "Joules per second" measure!