Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help with Cpudyn (for a TiBook)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Thu Nov 20, 2003 5:03 pm    Post subject: Need help with Cpudyn (for a TiBook) Reply with quote

Just emerge cpudyn on my TiBook and read the man pages but am still puzzle on how to configure the setting.

I would like to have cpudyn activate at startup time to run my cpu at 67 to 100 % depending on the load. and to spindown the disk after 1 min if no I/O operation.

Any info would be helpful, thanks. :D
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Fri Nov 21, 2003 8:42 pm    Post subject: Reply with quote

As installed by the Gentoo ebuild, the cpudyn settings are in /etc/conf.d/cpudyn -- that file is commented, and should be relatively straightforward to edit. 'man cpudynd' for more details (though sounds like you've already seen that), since settings in the conf file just get translated to command line arguments for cpudynd.

That being said, cpudyn doesn't let you specify the precise CPU speeds/ratios that will be used for idle/busy settings (unlike cpufreqd, though when I tried cpufreqd, the CPU speed settings seemed ineffective, i.e., the CPU stayed at the default high/low speed settings). Those settings are in /proc/cpufreq, and can be changed there, but I suspect the defaults may be fine, if not already what you want. Otherwise, you could put the settings you want directly in /proc/cpufreq as described in the ppc faq.

The beauty of cpudyn, I think, is its simplicity: it just checks cpu load, and based on that, switches the cpu back and forth between its low speed threshold ('powersave') to its high speed threshold ('performance'). What you can specify with cpudyn is how busy the CPU has to be for the switching to take place, with the -p flag or CPU_UP and CPU_Down in /etc/conf.d/cpudyn. My own settings (on an iBook 2.2, 800 MHz) are:

Code:
INTERVAL=1
CPU_UP=0.5
CPU_DOWN=0.9


These are almost identical to the default settings, and they work perfectly for me. If you're still uncertain about settings, I suspect that if you try the defaults, they will likely work fine for you, too (monitor /proc/cpuinfo to see whether or not its working).

As for spinning down the disk, I let pmud do that for me, but you can also use the TIMEOUT option in the cpudyn config (corresponds to the -t option for cpudynd, e.g. "TIMEOUT=60"). And, to have cpudyn run at startup, 'rc-update add cpudyn default'.

Hope this helps! I'm very happy with how cpudyn works on my iBook.
Back to top
View user's profile Send private message
KruzeS
n00b
n00b


Joined: 10 Jul 2003
Posts: 60
Location: Portugal

PostPosted: Sat Nov 22, 2003 12:31 am    Post subject: Reply with quote

I also use cpudyn, and would just like to add/ask one thing:

I've got THROTTLING_LOW off since it seems it's about ACPI, and Macs don't use ACPI, am I right?
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Sat Nov 22, 2003 12:45 am    Post subject: Reply with quote

KruzeS wrote:
I also use cpudyn, and would just like to add/ask one thing:

I've got THROTTLING_LOW off since it seems it's about ACPI, and Macs don't use ACPI, am I right?


You're right.

The cpudynd man page says that the throttling option is "in case of using ACPI throttling", which implies that it has no affect if ACPI isn't present; presumably ACPI-related items would fail and have no effect, even if cpudynd did try them. Still, you might as well turn it off; then, you can feel sure it won't do any harm.
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Sat Nov 22, 2003 2:19 am    Post subject: Reply with quote

ozonator wrote:
As installed by the Gentoo ebuild, the cpudyn settings are in /etc/conf.d/cpudyn -- that file is commented, and should be relatively straightforward to edit. 'man cpudynd' for more details (though sounds like you've already seen that), since settings in the conf file just get translated to command line arguments for cpudynd.

That being said, cpudyn doesn't let you specify the precise CPU speeds/ratios that will be used for idle/busy settings (unlike cpufreqd, though when I tried cpufreqd, the CPU speed settings seemed ineffective, i.e., the CPU stayed at the default high/low speed settings). Those settings are in /proc/cpufreq, and can be changed there, but I suspect the defaults may be fine, if not already what you want. Otherwise, you could put the settings you want directly in /proc/cpufreq as described in the ppc faq.

The beauty of cpudyn, I think, is its simplicity: it just checks cpu load, and based on that, switches the cpu back and forth between its low speed threshold ('powersave') to its high speed threshold ('performance'). What you can specify with cpudyn is how busy the CPU has to be for the switching to take place, with the -p flag or CPU_UP and CPU_Down in /etc/conf.d/cpudyn. My own settings (on an iBook 2.2, 800 MHz) are:

Code:
INTERVAL=1
CPU_UP=0.5
CPU_DOWN=0.9


These are almost identical to the default settings, and they work perfectly for me. If you're still uncertain about settings, I suspect that if you try the defaults, they will likely work fine for you, too (monitor /proc/cpuinfo to see whether or not its working).

As for spinning down the disk, I let pmud do that for me, but you can also use the TIMEOUT option in the cpudyn config (corresponds to the -t option for cpudynd, e.g. "TIMEOUT=60"). And, to have cpudyn run at startup, 'rc-update add cpudyn default'.

Hope this helps! I'm very happy with how cpudyn works on my iBook.


Thanks, will now set it up :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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