Re: patch: p4tcc and speedstep cpufreq drivers

From: Frank Mayhar <frank_at_exit.com>
Date: Thu, 24 Feb 2005 07:40:52 -0800 (PST)
Nate Lawson wrote:
> Please test the committed version of p4tcc.  Just load acpi_perf.ko and 
> cpufreq.ko on boot and see how changing the settings for dev.cpu.0.freq 
> affects performance.

It's working significantly better now; I notice that cooling in particular
is now working _much_ better.  On the other hand, there are still a couple
of problems.  I have acpi_perf_load and cpufreq_load in my /boot/loader.conf;
here are the interesting bits of the dmesg:

FreeBSD 6.0-CURRENT #26: Wed Feb 23 19:22:51 PST 2005
    frank_at_lap:/home/obj/usr/src/sys/AUTON
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Mobile Intel(R) Pentium(R) 4 CPU 2.80GHz (2790.72-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf34  Stepping = 4
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs
real memory  = 536662016 (511 MB)
avail memory = 511692800 (487 MB)
ACPI APIC Table: <DELL   CPi R  >
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
...
acpi0: <DELL CPi R  > on motherboard
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0: <ACPI CPU (2 Cx states)> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
CPU claims to support Enhanced Speedstep, but is not recognized.
Please update driver or contact the maintainer.
cpu_vendor = GenuineIntel msr = 152800001528, bus_clk = 64
p4tcc0: <CPU Frequency Thermal Control> on cpu0
acpi_acad0: <AC Adapter> on acpi0
acpi_cmbat0: <Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
...
ichss: enabling SpeedStep support
ichss0: <SpeedStep ICH> on cpu0
...

And from the sysctl stuff:

dev.cpu.0.%desc: ACPI CPU (2 Cx states)
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: 2790
dev.cpu.0.freq_levels: 2790/-1 2790/-1 2441/-1 2135/-1 2092/-1 1830/-1 1743/-1 1569/-1 1525/-1 1395/-1 1307/-1 1220/-1 1089/-1 1046/-1 915/-1 871/-1 784/-1 697/-1 653/-1 610/-1 523/-1 435/-1 392/-1 348/-1 305/-1 261/-1 217/-1 174/-1 130/-1 87/-1 43/-1
dev.cpufreq.0.%driver: cpufreq
dev.cpufreq.0.%parent: cpu0
dev.acpi_throttle.0.%desc: ACPI CPU Throttling
dev.acpi_throttle.0.%driver: acpi_throttle
dev.acpi_throttle.0.%parent: cpu0
dev.acpi_throttle.0.freq_settings: 10000/-1 8750/-1 7500/-1 6250/-1 5000/-1 3750/-1 2500/-1 1250/-1

I tried setting various frequencies and checking performance.  Using the
freq_levels values I was able to set it down to 87MHz, although things got
damned slow.  At 43MHz the system locked up and I had to powercycle.

If you need more information, please let me know.  And thanks for the nice
work!
-- 
Frank Mayhar frank_at_exit.com	http://www.exit.com/
Exit Consulting                 http://www.gpsclock.com/
                                http://www.exit.com/blog/frank/
Received on Thu Feb 24 2005 - 14:40:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:29 UTC