From owner-freebsd-current@FreeBSD.ORG Sun Dec 20 14:15:56 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D142210656EA for ; Sun, 20 Dec 2009 14:15:53 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id 94B878FC1D for ; Sun, 20 Dec 2009 14:15:53 +0000 (UTC) Received: by gxk10 with SMTP id 10so4286823gxk.3 for ; Sun, 20 Dec 2009 06:15:53 -0800 (PST) Received: by 10.150.127.10 with SMTP id z10mr9408736ybc.276.1261318552506; Sun, 20 Dec 2009 06:15:52 -0800 (PST) Received: from papi.localnet ([187.78.74.174]) by mx.google.com with ESMTPS id 15sm2020008yxh.58.2009.12.20.06.15.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 20 Dec 2009 06:15:51 -0800 (PST) From: Mario Lobo To: freebsd-current@freebsd.org Date: Sun, 20 Dec 2009 11:14:32 -0300 User-Agent: KMail/1.12.3 (FreeBSD/8.0-STABLE; KDE/4.3.3; amd64; ; ) References: <20091220063318.49A8C1CC0B@ptavv.es.net> <4B2DCC83.1000402@FreeBSD.org> <3f1fd1ea0912192339ob8bc80dx5b5f8ba0c6d6dad7@mail.gmail.com> In-Reply-To: <3f1fd1ea0912192339ob8bc80dx5b5f8ba0c6d6dad7@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200912201114.32661.lobo@bsd.com.br> Subject: Re: Systems running hot? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 14:15:57 -0000 On Sunday 20 December 2009 04:39:54 Michal Varga wrote: > 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: on cpu0 > powernow1: 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. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > Well, here's my CPU: AMD Phenom(tm) II X4 955 Processor (3216.13-MHz K8-class CPU) [~]>sysctl dev.cpu dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.P001 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.freq: 3200 dev.cpu.0.freq_levels: 3200/28215 2800/24688 2500/18625 2187/16296 2100/12650 1837/11068 1575/9487 1312/7906 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: 55.0C dev.cpu.1.%desc: ACPI CPU dev.cpu.1.%driver: cpu dev.cpu.1.%location: handle=\_PR_.P002 dev.cpu.1.%pnpinfo: _HID=none _UID=0 dev.cpu.1.%parent: acpi0 dev.cpu.1.cx_supported: C1/0 dev.cpu.1.cx_lowest: C1 dev.cpu.1.cx_usage: 100.00% last 500us dev.cpu.1.temperature: 55.0C dev.cpu.2.%desc: ACPI CPU dev.cpu.2.%driver: cpu dev.cpu.2.%location: handle=\_PR_.P003 dev.cpu.2.%pnpinfo: _HID=none _UID=0 dev.cpu.2.%parent: acpi0 dev.cpu.2.cx_supported: C1/0 dev.cpu.2.cx_lowest: C1 dev.cpu.2.cx_usage: 100.00% last 500us dev.cpu.2.temperature: 55.0C dev.cpu.3.%desc: ACPI CPU dev.cpu.3.%driver: cpu dev.cpu.3.%location: handle=\_PR_.P004 dev.cpu.3.%pnpinfo: _HID=none _UID=0 dev.cpu.3.%parent: acpi0 dev.cpu.3.cx_supported: C1/0 dev.cpu.3.cx_lowest: C1 dev.cpu.3.cx_usage: 100.00% last 500us dev.cpu.3.temperature: 55.0C I have: dev.cpu.0.freq_levels: 3200/28215 2800/24688 2500/18625 2187/16296 2100/12650 1837/11068 1575/9487 1312/7906 dev.acpi_throttle.0.freq_settings: 10000/-1 8750/-1 7500/-1 6250/-1 5000/-1 3750/-1 2500/-1 1250/-1 dev.hwpstate.0.freq_settings: 3200/28215 2500/18625 2100/12650 800/5070 Which one should I choose to set debug.cpufreq.lowest to: 1312, 1250 or 800 ? Which of these will powerd use? thanks, -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winfoes FREE)