Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CPU frequency scaling "hinting" [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
number_nine
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2005
Posts: 136

PostPosted: Sat Aug 18, 2007 1:25 am    Post subject: CPU frequency scaling "hinting" [SOLVED] Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sat Aug 18, 2007 1:44 am    Post subject: Reply with quote

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
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sat Aug 18, 2007 2:49 pm    Post subject: Reply with quote

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 ... :)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
number_nine
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2005
Posts: 136

PostPosted: Sun Aug 19, 2007 4:41 pm    Post subject: Reply with quote

Thank you, this is exactly what I was looking for!

Thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum