From owner-freebsd-current@FreeBSD.ORG Thu Dec 24 17:48:42 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5691F1065672; Thu, 24 Dec 2009 17:48:42 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id EF6B68FC18; Thu, 24 Dec 2009 17:48:41 +0000 (UTC) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id nBOHmHsD019897 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Dec 2009 18:48:17 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by cicely5.cicely.de (8.14.2/8.14.2) with ESMTP id nBOHmCY5070621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Dec 2009 18:48:15 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id nBOHmCdB041791; Thu, 24 Dec 2009 18:48:12 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id nBOHmAjR041790; Thu, 24 Dec 2009 18:48:10 +0100 (CET) (envelope-from ticso) Date: Thu, 24 Dec 2009 18:48:10 +0100 From: Bernd Walter To: Kevin Oberman Message-ID: <20091224174809.GZ2260@cicely7.cicely.de> References: <20091224104625.GY2260@cicely7.cicely.de> <20091224162412.BA73A1CC0B@ptavv.es.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091224162412.BA73A1CC0B@ptavv.es.net> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.015, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: Gleb Kurtsou , Doug Barton , ticso@cicely.de, freebsd-current@freebsd.org, "b. f." Subject: Re: powerd and nvidia drivers not playing nicely together (Was: Re: Systems running hot?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de 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 Dec 2009 17:48:42 -0000 On Thu, Dec 24, 2009 at 08:24:12AM -0800, Kevin Oberman wrote: > > Date: Thu, 24 Dec 2009 11:46:26 +0100 > > From: Bernd Walter > > Sender: owner-freebsd-current@freebsd.org > > > > On Wed, Dec 23, 2009 at 04:44:35PM +0200, Gleb Kurtsou wrote: > > > On (21/12/2009 19:18), Doug Barton wrote: > > > > b. f. wrote: > > > > > On 12/21/09, Doug Barton wrote: > > > > >> b. f. wrote: > > > > >>>> no X! So I think to myself, what else did I change last night.... oh > > > > > > > > > >>> acpi_perf? acpi_throttle? acpi_thermal? acpi_video? > > > > >> I haven't done anything special with the acpi stuff. The only thing > > > > >> that looks relevant from dmesg is: acpi_tz0: on acpi0 > > > > >> > > > > > > > > > > Yes, but which components show up in 'sysctl -a | grep -ie acpi' ? > > > > > > > > It's a long list, but here you go: > > > > http://people.freebsd.org/~dougb/acpi-grep.txt > > > > > > > > >>> Which nvidia driver? > > > > >> The latest. > > > > > > > > > > Which video card? > > > > > > > > nvidia0: > > > I had similar problems with GeForce 8400M. GPU temperature could get up > > > to 100C in X, which increased CPU temperature in its turn. I use > > > powerd, and had lockups with *_cx_lowest settings. I run amd64, i386 was > > > just fine on the same notebook. > > > > It is not just nvidia. > > I'm using two plain old PCI Matrox G400 and whenever I start X with > > powerd enabled I have a full freeze within 24 hours. > > It doesn't seem to be a problem to start powerd once X is runnning. > > Maybe it is something like tuning some delay loop with reduced clock > > rate, which then isn't long enough with increased speed. > > Quick question...are you using throttling/TCC? If so, either turn it off > or limit how low it can run the CPU. When I was running throttling on > systems with old Matrox and Radeon cards, they would freeze if the > throttling went too low. I asume yes - not sure about all those modern fancy names. In other words dev.cpu.?.freq changes. > As mav pointed out at http://wiki.freebsd.org/TuningPowerConsumption, > TCC does little to conserve power and was not designed for that. TCC is > Thermal Control Circuit and is designed to keep the CPU form > over-temping. It works for this, but not power management. I'd love to > see it off (for power management) by default. > hint.p4tcc.0.disabled=1 > hint.acpi_throttle.0.disabled=1 What is the difference between the hints and disabling powerd? My system is a C2 quad on an Intel board running i386/PAE. Only C1 is supported, which - to my knowledge - doesn't require powerd and should be active by default. [20]cicely7# sysctl dev.cpu 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.temperature: 60 dev.cpu.0.freq: 2394 dev.cpu.0.freq_levels: 2394/89000 2094/77875 1795/66750 1496/55625 1197/44500 897/33375 598/22250 299/11125 dev.cpu.0.cx_supported: C1/1 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% dev.cpu.1.%desc: ACPI CPU dev.cpu.1.%driver: cpu dev.cpu.1.%location: handle=\_PR_.CPU1 dev.cpu.1.%pnpinfo: _HID=none _UID=0 dev.cpu.1.%parent: acpi0 dev.cpu.1.temperature: 59 dev.cpu.1.cx_supported: C1/1 dev.cpu.1.cx_lowest: C1 dev.cpu.1.cx_usage: 100.00% dev.cpu.2.%desc: ACPI CPU dev.cpu.2.%driver: cpu dev.cpu.2.%location: handle=\_PR_.CPU2 dev.cpu.2.%pnpinfo: _HID=none _UID=0 dev.cpu.2.%parent: acpi0 dev.cpu.2.temperature: 54 dev.cpu.2.cx_supported: C1/1 dev.cpu.2.cx_lowest: C1 dev.cpu.2.cx_usage: 100.00% dev.cpu.3.%desc: ACPI CPU dev.cpu.3.%driver: cpu dev.cpu.3.%location: handle=\_PR_.CPU3 dev.cpu.3.%pnpinfo: _HID=none _UID=0 dev.cpu.3.%parent: acpi0 dev.cpu.3.temperature: 52 dev.cpu.3.cx_supported: C1/1 dev.cpu.3.cx_lowest: C1 dev.cpu.3.cx_usage: 100.00% -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.