Hello, What ids the current way to control cpu speed (and power consumption) in FreeBSD 6-stable? Before, est was one way, but all traces of est has disappeared from /etc/defaults/rc.conf and thereabouts. I find something about powerd and power_profile, but they don't seem to work, and I can't seem to find out what variables / configuration items to set. 'man cpufreq' isn't much help in that regard either. Do I need working acpi to use a power control method? -- Regards, Torfinn Ingolfsen, Norway
On Tuesday 22 August 2006 06:08, Torfinn Ingolfsen wrote:> Hello, > > What ids the current way to control cpu speed (and power consumption) > in FreeBSD 6-stable? > Before, est was one way, but all traces of est has disappeared > from /etc/defaults/rc.conf and thereabouts. > I find something about powerd and power_profile, but they don't seem to > work, and I can't seem to find out what variables / configuration items > to set. 'man cpufreq' isn't much help in that regard either.Loading cpufreq should give you sysctl's which control CPU frequency. powerd uses these to adjust frequency based on load. I have this in rc.conf powerd_enable="YES" powerd_flags="-i 70 -r 30 -a adaptive -b adaptive -n adaptive -p 200" And in dmesg.. cpu0: <ACPI CPU> on acpi0 est0: <Enhanced SpeedStep Frequency Control> on cpu0 p4tcc0: <CPU Frequency Thermal Control> on cpu0 And sysctl.. dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.freq: 1225 dev.cpu.0.freq_levels: 1400/-1 1225/-1 1200/-1 1050/-1 1000/-1 875/-1 800/-1 700/-1 600/-1 525/-1 450/-1 375/-1 300/-1 225/-1 150/-1 75/-1 (This is a Pentium-M 1.4Ghz) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060821/6dc70a09/attachment.pgp
Torfinn Ingolfsen wrote:> Hello, > > What ids the current way to control cpu speed (and power consumption) > in FreeBSD 6-stable? > Before, est was one way, but all traces of est has disappeared > from /etc/defaults/rc.conf and thereabouts. > I find something about powerd and power_profile, but they don't seem to > work, and I can't seem to find out what variables / configuration items > to set. 'man cpufreq' isn't much help in that regard either.In what way does powerd not work for you? (jhary@prawn)$grep powerd /etc/defaults/rc.conf powerd_enable="NO" # Run powerd to lower our power usage. powerd_flags="" # Flags to powerd (if enabled). read man powerd for flags and try powerd -v this should give an indication of what happens, for example I get {root@prawn}#powerd -v idle time > 90%, decreasing clock speed from 1666 MHz to 1457 MHz idle time > 90%, decreasing clock speed from 1457 MHz to 1249 MHz idle time > 90%, decreasing clock speed from 1249 MHz to 1041 MHz idle time > 90%, decreasing clock speed from 1041 MHz to 833 MHz idle time > 90%, decreasing clock speed from 833 MHz to 624 MHz idle time > 90%, decreasing clock speed from 624 MHz to 416 MHz idle time > 90%, decreasing clock speed from 416 MHz to 208 MHz idle time < 65%, increasing clock speed from 208 MHz to 624 MHz idle time > 90%, decreasing clock speed from 624 MHz to 416 MHz idle time > 90%, decreasing clock speed from 416 MHz to 208 MHz idle time < 65%, increasing clock speed from 208 MHz to 624 MHz idle time > 90%, decreasing clock speed from 624 MHz to 416 MHz which is a pain if i'm running X on mains so I tend to use -a maximum -b adaptive as my powerd flags as it defaults to adaptive even if your on mains power.> > Do I need working acpi to use a power control method?Umm not sure as mine works, but probably, since my dmesg says I have acpi_throttle0: <ACPI CPU Throttling> {root@prawn}#dmesg | grep -i cpu CPU: Genuine Intel(R) CPU T2300 @ 1.66GHz (1662.51-MHz 686-class CPU) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu0: <ACPI CPU> on acpi0 acpi_throttle0: <ACPI CPU Throttling> on cpu0 cpu1: <ACPI CPU> on acpi0 acpi_throttle1: <ACPI CPU Throttling> on cpu1 SMP: AP CPU #1 Launched! Vince
On Tue, 22 Aug 2006 09:32:05 +0100 Vince <jhary@unsane.co.uk> wrote: My system is: root@kg-home# uname -a FreeBSD kg-home.kg4.no 6.1-STABLE FreeBSD 6.1-STABLE #2: Mon Aug 21 15:58:01 CEST 2006 root@kg-home.kg4.no:/usr/obj/usr/src/sys/AS5672 i386 root@kg-home# dmesg | grep -i cpu CPU: Genuine Intel(R) CPU T2250 @ 1.73GHz (1733.41-MHz 686-class CPU) cpu0 on motherboard> powerd -vI get: root@kg-home# powerd -v powerd: lookup freq: No such file or directory> > Do I need working acpi to use a power control method? > Umm not sure as mine works, but probably, since my dmesg says I haveOk, I just checked, and with acpi enabled, powerd runs. I run this laptop (AcerAspire AS5672) with acpi disabled, as this is currently the only way I can get a network connection working on it. Howeever, it gets very hot, so I would like to control the temperature better. -- Regards Torfinn Ingolfsen, Norway