From owner-freebsd-questions@FreeBSD.ORG Tue May 22 14:08:48 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56F0216A421 for ; Tue, 22 May 2007 14:08:48 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id E02C813C4AE for ; Tue, 22 May 2007 14:08:46 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id AAA21625; Wed, 23 May 2007 00:08:20 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 23 May 2007 00:08:19 +1000 (EST) From: Ian Smith To: Ghirai In-Reply-To: <20070521230318.3337C16A4A5@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Roland Smith , freebsd-questions@freebsd.org Subject: Re: notebook cpu throttling X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2007 14:08:48 -0000 On Tue, 22 May 2007 00:56:08 +0300 Ghirai wrote: > Hello Roland, > > Monday, May 21, 2007, 11:08:13 PM, you wrote: > > > On Mon, May 21, 2007 at 09:52:22PM +0300, Ghirai wrote: > >> Hello list, > >> > >> I'm running 6.2-RELEASE, SMP, on a > >> Fujitsu-Siemens Amilo Pro v3205 (Core Duo). > >> > >> Everything works fine, except the cpu throttling, > >> which makes the fan start quite often. > >> > >> Is there any way to fix this? > > > You need to do three things (as root); > > > 1) Load the cpufreq module 'kldload cpufreq'. > > 2) Put 'powerd_enable="YES"' in your /etc/rc.conf > > 2) Start powerd: '/etc/rc.d/powerd start' > > > Roland > > Thanks for the hint. > > I did that, but now xorg constantly uses 20-30% CPU. > > CPUs were running cooler indeed, but everything ran jerky, > because of the xorg cpu usage. > > Note that i haven't upgraded to 7.2 yet, > but i don't think this is the problem. This might not really indicate any problem. Firstly, what are your # sysctl dev.cpu.0.freq_levels Try watching the current cpu speed (dev.cpu.0.freq) while running under powerd. You can watch it shift under various loads by running 'powerd -v' in foreground, show it by running a script sleeping for eg a minute, or use (say) gkrellm with gkfreq plugin to display cpu speed constantly. Point being, if powerd has selected your lowest cpu frequency because load is less than default (or as specified by -i and -r switches) and this is (say) 1/4 of full speed, then something that normally showed 5% cpu will now show as using 20% (of available cpu cycles at that speed) You can tune your powerd idle levels more towards performance, and/or you can set a higher minimum cpu freq with sysctl debug.cpufreq.lowest from among your available levels. powerd's default shiftpoints work on my T23, but it's only a 2-speed :) Cheers, Ian