You are not logged in.
Hey all,
I'm looking into the powerdown scripts to adapt them to my own setup and I noticed it sets the CPU governor manually, the following way:
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do opt $i powersave; doneSo, it does not use any "framework" like cpupower or cpufreq-utils. Now I wonder, what benefits does using a framework (like cpupower in my case) offer, over manually setting it? I don't change governors often on the fly (only using these powerdown/powerup scripts) and I noticed I can also set the sched_smt setting manually. Thus, I could also put these lines in rc.local to have the same functionality:
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do opt $i ondemand; done
opt /sys/devices/system/cpu/sched_smt_power_savings 1Would that fully replace cpupower, or at least the way I use cpupower? What other advantages does using cpupower offer?
EDIT: Of course, I know those lines won't work outside their functions that are used in powerdown - but I can adjust these lines so they will work ![]()
Last edited by Unia (2012-05-31 17:14:29)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Oke, I'll simplify the question:
would using the manual approach get the same result as using cpupower and setting the governor that way?
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Yes! ![]()
Offline
Oh hey, you helped me again
I'll change some settings then and report back
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
All set 'n done. Just one last question: is there some better place to put this, other then in /etc/rc.local?
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
No, i don't think. Or you can create a script for pm-utils, but it doesn't change much.
Happy i can help! ![]()
Offline
Consider this solved, then! Thanks! ![]()
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline