Re: Systems running hot?

From: Michal Varga <varga.michal_at_gmail.com>
Date: Sun, 20 Dec 2009 08:39:54 +0100
Sorry to hijack the thread, but I'm curious - is anybody running
powerd/throttling on a Phenom-based CPU?

I see cpufreq attaching normally on /AMD Athlon(tm) 64 X2 Dual Core
Processor 3600+ (2004.56-MHz 686-class CPU)/:

# kldload -v cpufreq
Loaded cpufreq, id=25
powernow0: <PowerNow! K8> on cpu0
powernow1: <PowerNow! K8> on cpu1

# /etc/rc.d/powerd start
Starting powerd.


But not so on much newer /AMD Phenom(tm) 8450 Triple-Core Processor
(2109.74-MHz 686-class CPU)/:

# kldload -v cpufreq
Loaded cpufreq, id=23

# /etc/rc.d/powerd start
Starting powerd.
powerd: lookup freq: No such file or directory


Cue in src/usr.sbin/powerd/powerd.c:
        if (sysctlnametomib("dev.cpu.0.freq", freq_mib, &len))
                err(1, "lookup freq");

>From AMD X2:
# sysctl dev.cpu.0.
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.C000
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 995
dev.cpu.0.freq_levels: 1990/65000 1791/53913 995/25168
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% last 500us
dev.cpu.0.temperature: 39.0C

>From the offending Phenom:
# sysctl dev.cpu.0.
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.C000
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% last 500us
dev.cpu.0.temperature: 27.5C

This is from latest 7.2. Were there any changes in 8/9-CURRENT to
bring some love to Phenoms too?

m.
Received on Sun Dec 20 2009 - 07:04:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:59 UTC