From owner-freebsd-current@FreeBSD.ORG Wed Nov 19 14:51:21 2003 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 2783B16A4CE for ; Wed, 19 Nov 2003 14:51:21 -0800 (PST) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDA1D43FB1 for ; Wed, 19 Nov 2003 14:51:19 -0800 (PST) (envelope-from anderson@centtech.com) Received: from centtech.com (neutrino.centtech.com [10.177.171.220]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id hAJMpI6T075379; Wed, 19 Nov 2003 16:51:18 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <3FBBF3DE.40605@centtech.com> Date: Wed, 19 Nov 2003 16:51:10 -0600 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <20031116120622.O57495@root.org> <200311180346.22259@harrymail> <20031118095752.R64353@root.org> <200311182346.13704@harrymail> <3FBAC2DB.1080004@centtech.com> <20031118172757.S65940@root.org> <3FBAF515.6070507@centtech.com> <20031118223605.O66622@root.org> In-Reply-To: <20031118223605.O66622@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: current@freebsd.org Subject: Re: acpi_cpu_idle panic (Was: Re: kernel panic with todays source) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 19 Nov 2003 22:51:21 -0000 Nate Lawson wrote: >On Tue, 18 Nov 2003, Eric Anderson wrote: > > >>Nate Lawson wrote: >> >> >>>cvsup to -current as of today would be a good first start. The code was >>>committed Nov 15. Then boot with acpi enabled and post the output of >>>sysctl hw.acpi.cpu. You can try different levels by doing sysctl >>>hw.acpi.cpu.cx_lowest=x where x is 0...(number_supported_states - 1) >>> >>> >>> >>Thanks! I've rebuilt and am happy to say that nothing is hosed and I >>booted successfully :) >> >>Here's my sysctl output: >>$ sysctl hw.acpi.cpu >>hw.acpi.cpu.max_speed: 8 >>hw.acpi.cpu.current_speed: 4 >>hw.acpi.cpu.performance_speed: 8 >>hw.acpi.cpu.economy_speed: 4 >> >> > >You should run a benchmark with different values for >hw.acpi.cpu.current_speed to be sure the throttling control still works >ok. I left it mostly intact so you shouldn't see any problems but it's >still good to test. As you change it, you should see dmesg output of >"acpi_cpu0: set speed to xx%" > I can change the hw.acpi.cpu.economy_speed value, but the current_speed is read only. When I set economy speed, it automatically bumps the current speed down to my economy value (as expected). However, no dmesg output. The only note I see is when going from AC to battery, I get: kernel: system power profile changed to 'economy' and of course going back to aAC shows 'performance' instead of economy. I never see any "set speed to xx%". >>hw.acpi.cpu.cx_supported: C1/1 C2/1 C3/85 C3/185 >>hw.acpi.cpu.cx_lowest: 0 >>hw.acpi.cpu.cx_history: 23589/0 0/0 0/0 0/0 >> >>I played with the different levels a bit, and can't tell much difference >>in them. Let me know what else I can try to break with this. Just for >>the info, I booted with a/c plugged in, but did the sysctl running on >>battery. >> >> > >You should set hw.acpi.cpu.cx_lowest to 1 regularly and 2 or 3 if you're >using battery. This will save on heat. I'd also be interested in if >you'd set it to 3 while on battery and run a typical workload for an hour >and then send me the result of sysctl hw.acpi.cpu. The cx_history value >helps me know if my scheduler is accurate. > I'll try this tomorrow - anyway to get it to automatically set it to a value when going in to economy mode? >>Eric Anderson Systems Administrator Centaur Technology >> >> > >Say hi to Tom Crispin for me. :) > He says "hi" :) (small world, eh?) On a side note - can I do anything with the "lid control switch" acpi piece? I'd like to make it turn off the screen and go into a sleep mode (it goes into sleep, but the screen stays lit up). Thanks for the great work! Eric -- ------------------------------------------------------------------ Eric Anderson Systems Administrator Centaur Technology All generalizations are false, including this one. ------------------------------------------------------------------