CPUFreq

Thomas D. Dean tomdean at speakeasy.org
Wed Nov 30 14:08:41 UTC 2011


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 at 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



More information about the freebsd-amd64 mailing list