View previous topic :: View next topic |
Author |
Message |
number_nine Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 05 May 2005 Posts: 136
|
Posted: Sat Aug 18, 2007 1:25 am Post subject: CPU frequency scaling "hinting" [SOLVED] |
|
|
I want to use the power-saving features of modern CPUs (cpufreq, powernow, etc). However, I'd like to have certain applications be able to "hint" to the kernel to not change power states.
In particular, I want to use the ondemand or conservative governor, but have the CPU stay in "powersave" mode (lowest power/frequency state) when running applications like seti@home or folding@home. Only when other applications run should the CPU jump into a higher performance level.
Is there some kind of wrapper or something I can use around an application to "hide" its CPU usage from the kernel/CPU governor?
Thanks.
Last edited by number_nine on Sun Aug 19, 2007 4:41 pm; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sadako Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2074682074aea79062b33b.jpg)
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Sat Aug 18, 2007 1:44 am Post subject: |
|
|
I think powernowd has an option to not count "niced" processes,
so if you started seti or whatever with `nice -n 10` it shouldn't increase the frequency for it. _________________ "You have to invite me in" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
albright Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/524660825462570600c7fb.jpg)
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Sat Aug 18, 2007 2:49 pm Post subject: |
|
|
If you are using cpufreqd then look in the file /etc/cpufreqd.conf
You can assign power profiles to individual applications. For
example, here's a rule for burnP6:
Code: |
[Rule]
name=burning
battery_interval=0-100
programs=burnP6
cpu_interval=0-100
profile=lo_power
[/Rule]
|
When burnP6 runs, the governor is set to powersave and
cpu set to lowest speed (that stuff is set in the profile called
"lo_power"). You can do lots of tricks ... ![Smile :)](images/smiles/icon_smile.gif) _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
number_nine Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 05 May 2005 Posts: 136
|
Posted: Sun Aug 19, 2007 4:41 pm Post subject: |
|
|
Thank you, this is exactly what I was looking for!
Thanks again. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|