From owner-freebsd-amd64@FreeBSD.ORG Wed Nov 30 14:08:41 2011 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8081106566B for ; Wed, 30 Nov 2011 14:08:41 +0000 (UTC) (envelope-from tomdean@speakeasy.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id 7686D8FC08 for ; Wed, 30 Nov 2011 14:08:41 +0000 (UTC) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.50]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 508F2A73329 for ; Wed, 30 Nov 2011 08:46:38 -0500 (EST) Received: (qmail 26384 invoked from network); 30 Nov 2011 13:46:37 -0000 Received: by simscan 1.4.0 ppid: 2845, pid: 23879, t: 0.3575s scanners: clamav: 0.88.2/m:52/d:10739 spam: 3.0.4 Received: from 24-113-112-30.wavecable.com (HELO [192.168.2.2]) (tomdean@[24.113.112.30]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 30 Nov 2011 13:46:37 -0000 From: "Thomas D. Dean" To: freebsd-amd64@freebsd.org Content-Type: text/plain; charset="UTF-8" Organization: Home Date: Wed, 30 Nov 2011 05:46:36 -0800 Message-ID: <1322660796.327.34.camel@asus> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail6.sea5 X-Spam-Level: * X-Spam-Status: No, score=1.6 required=8.0 tests=BAYES_50 autolearn=disabled version=3.0.4 Subject: CPUFreq X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: tomdean@speakeasy.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2011 14:08:41 -0000 HP Envy 17 3D Notebook > uname -a FreeBSD Envy.tddhome 8.2-STABLE FreeBSD 8.2-STABLE #3: \ Mon Oct 24 11:38:59 PDT 2011 \ tomdean@Envy.tddhome:/usr/obj/usr/src/sys/GENERIC amd64 > dmesg ... CPU: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz (2294.80-MHz K8-class CPU) ... I screwed the cpufreq settings and cannot get back to the default (boot) performance. The value of dev.cpu.0.freq was 800 and this seemed strange. I have two processes running that I do not want to stop. They have been running for 19 days and I expect they will finish in another 10 days, or so. The core temps before I started messing with things were Wed Nov 30 04:36:41 PST 2011 hw.acpi.thermal.tz0.temperature: 72.0C dev.cpu.0.temperature: 73.0C dev.cpu.1.temperature: 73.0C dev.cpu.2.temperature: 70.0C dev.cpu.3.temperature: 70.0C dev.cpu.4.temperature: 72.0C dev.cpu.5.temperature: 72.0C dev.cpu.6.temperature: 72.0C dev.cpu.7.temperature: 72.0C and, a couple dev.cpu.0 values: dev.cpu.0.freq: 800 dev.cpu.0.freq_levels: 2301/45000 2012/39375 1800/33127 1600/28627 1400/24305 1225/21266 1200/20566 1050/17995 1000/16595 875/14520 800/12801 700/11200 600/9600 500/8000 400/6400 300/4800 200/3200 I started changing dev.cpu.0.freq and got out-of-whack! > sudo sysctl dev.cpu.0.freq=2301 dev.cpu.0.freq: 800 -> 2310 OK, I thought. But, dev.cpu.0.temperature started rising and went to the mid-80's. I changed it to a lower value and the temperature dropped, as expected. > sudo sysctl dev.cpu.0.freq=2012 dev.cpu.0.freeq: 2310 -> 2012 > sysctl dev.cpu.0.temperature dev.cpu.0.temperature: 65.0C The fan is silent. I believe the CPU is running at some state different than the boot state because the temperature has dropped. > sysctl dev.cpu.0 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.coretemp.delta: 35 dev.cpu.0.coretemp.resolution: 1 dev.cpu.0.coretemp.tjmax: 100.0C dev.cpu.0.coretemp.throttle_log: 0 dev.cpu.0.temperature: 65.0C dev.cpu.0.freq: 2012 dev.cpu.0.freq_levels: 2301/45000 2012/39375 1800/33127 1600/28627 1400/24305 1225/21266 1200/20566 1050/17995 1000/16595 875/14520 800/12801 700/11200 600/9600 500/8000 400/6400 300/4800 200/3200 100/1600 dev.cpu.0.cx_supported: C1/1 C2/104 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% 0.00% last 305us Is there any way to get back to the boot state other than rebooting? tomdean