How does powertop deal with multiple executions
Jesús Díaz Vico <jesus.diaz.vico at gmail.com>
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.
Arjan van de Ven
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.
Jesús D <jesus.diaz.vico at gmail.com>
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
Arjan van de Ven
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!
Jesús D <jesus.diaz.vico at gmail.com>
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!