From owner-freebsd-current@FreeBSD.ORG Thu Feb 24 15:40:56 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E8D716A4CE for ; Thu, 24 Feb 2005 15:40:56 +0000 (GMT) Received: from tinker.exit.com (tinker.exit.com [206.223.0.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14C4043D66 for ; Thu, 24 Feb 2005 15:40:56 +0000 (GMT) (envelope-from frank@exit.com) Received: from realtime.exit.com (realtime [206.223.0.5]) by tinker.exit.com (8.13.1/8.13.1) with ESMTP id j1OFerNN022639; Thu, 24 Feb 2005 07:40:53 -0800 (PST) (envelope-from frank@exit.com) Received: from realtime.exit.com (localhost [127.0.0.1]) by realtime.exit.com (8.13.1/8.12.9) with ESMTP id j1OFerlX036397; Thu, 24 Feb 2005 07:40:53 -0800 (PST) (envelope-from frank@realtime.exit.com) Received: (from frank@localhost) by realtime.exit.com (8.13.1/8.13.1/Submit) id j1OFer3t036396; Thu, 24 Feb 2005 07:40:53 -0800 (PST) (envelope-from frank) From: Frank Mayhar Message-Id: <200502241540.j1OFer3t036396@realtime.exit.com> In-Reply-To: <421CD83A.7080704@root.org> To: Nate Lawson Date: Thu, 24 Feb 2005 07:40:52 -0800 (PST) X-Copyright0: Copyright 2005 Frank Mayhar. All Rights Reserved. X-Copyright1: Permission granted for electronic reproduction as Usenet News or email only. X-Mailer: ELM [version 2.4ME+ PL119 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: current@freebsd.org Subject: Re: patch: p4tcc and speedstep cpufreq drivers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: frank@exit.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 15:40:56 -0000 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@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 Hyperthreading: 2 logical CPUs real memory = 536662016 (511 MB) avail memory = 511692800 (487 MB) ACPI APIC Table: ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard ... acpi0: on motherboard Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 acpi_throttle0: 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: on cpu0 acpi_acad0: on acpi0 acpi_cmbat0: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 ... ichss: enabling SpeedStep support ichss0: 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@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/