|
|
Log in / Subscribe / Register

power consumption: suggestions welcome

power consumption: suggestions welcome

Posted Apr 3, 2018 14:19 UTC (Tue) by anarcat (subscriber, #66354)
In reply to: A look at terminal emulators, part 1 by tytso
Parent article: A look at terminal emulators, part 1

power consumption is not currently measured in the test harness i have now. if you have suggestions on how that could be easily instrumented, i'm all ears. but consider that the first test bed was "time $dump_a_bunch_of_stuff", which ended up being rewritten as a small python program that uses getrusage() to get I/O, memory, wall/sys/user time metrics. as far as i know, getrusage doesn't provide "power consumption" (which would be a tricky metric to implement at best)...

so how do you measure power consumption of a given process anyways? assume i know about powertop and that it's not a good answer (because it's not a batch program).

i would have assumed that the sum of "I/O + memory + CPU usage" would be a good metric of power consumption...


to post comments

power consumption: suggestions welcome

Posted Apr 3, 2018 16:44 UTC (Tue) by tytso (✭ supporter ✭, #9993) [Link]

What I would suggest is doing the test while the system is quiesced and then measure total power used by the whole system. Then use the terminal program with the lowest total system power and use it as the baseline.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds