From owner-freebsd-mobile@FreeBSD.ORG Wed May 12 18:24:43 2010 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9707B106564A for ; Wed, 12 May 2010 18:24:43 +0000 (UTC) (envelope-from nathan.open@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id E312C8FC0A for ; Wed, 12 May 2010 18:24:42 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 22so1529779fge.13 for ; Wed, 12 May 2010 11:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=PTOe4FkiNzYbDJZrYFD4OsPs6bVq8Pfk7K5JwY/c41k=; b=I7NZog9Xa+DdVgNzIMzrJjM11MdWd2WQFf/gWxcKa2TJpu7/cagY5kQfD6IKbEmXDN Isx9cSLKuhELGKgN4Wq6OljgQOiGt8w/SzWuTQb+Qe4/+d3DWJbjZO0+ytz2Eoca+pq5 nPVudXEUWM8lOZLMdIOW+NUkVBH9ub++DA+yY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bjvoaPhsn9/8evzrRNKY+IeBOn46Fl10vphnY7Bk3RRraRbO6Uvk7LDKXNM7dIFjb3 nxK08qUsAI/OcMf0KJf1Gt5FJeffRwZke2Zg6Rp1Q7GBTE17E1oGEHcl/oghdYPTJP2k t9hbSytN9Ojd1zhvRVdZLnwHF1BTeWCXr1egs= MIME-Version: 1.0 Received: by 10.87.74.15 with SMTP id b15mr15198843fgl.11.1273688681756; Wed, 12 May 2010 11:24:41 -0700 (PDT) Received: by 10.86.76.10 with HTTP; Wed, 12 May 2010 11:24:41 -0700 (PDT) In-Reply-To: <20100512145240.U22612@sola.nimnet.asn.au> References: <20100510021753.E22612@sola.nimnet.asn.au> <20100510150130.A22612@sola.nimnet.asn.au> <20100512145240.U22612@sola.nimnet.asn.au> Date: Wed, 12 May 2010 20:24:41 +0200 Message-ID: From: Nathan BIAGINI To: Ian Smith Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mobile@freebsd.org Subject: Re: high cpu temp and fan speed problem X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2010 18:24:43 -0000 2010/5/12 Ian Smith > On Mon, 10 May 2010, Nathan BIAGINI wrote: > > 2010/5/10 Ian Smith > [..] > > > cpu0: on acpi0 > > > est0: on cpu0 > > > p4tcc0: on cpu0 > > > cpu1: on acpi0 > > > est1: on cpu1 > > > p4tcc1: on cpu1 > > > =3D=3D=3D=3D=3D=3D=3D > > > > > > Right, it's a Core2 Duo at 2GHz, using est (absolute) frequency > control, > > > and p4tcc (relative) frequency thermal control. See cpufreq(4) ie > 'man > > > cpufreq'. This combination seems to be a problem for these in some > > > recent machines. While at 250MHz it should be using only 4.375 watt= s, > > > that doesn't seem to be working right on these, and you may be bette= r > > > off (regarding heat) using the fewer frequencies provided just by es= t. > > > > > > =3D=3D=3D=3D=3D=3D=3D > > > dev.cpu.0.freq: 250 > > > dev.cpu.0.freq_levels: 2000/35000 1750/30625 1500/26250 1250/21875 > > > 1000/17500 750/13125 500/8750 250/4375 > > > dev.cpu.0.cx_supported: C1/1 C2/57 > > > dev.cpu.0.cx_lowest: C1 > > > dev.cpu.0.cx_usage: 100.00% 0.00% last 500us > > > =3D=3D=3D=3D=3D=3D=3D > > > > > > So, cpufreq seems only to be seeing your 2000 frequency, and each of > > > these other frequencies are 7/8, 6/8 .. 1/8 of 2000MHz, generated by > > > p4tcc, which seems odd, unless 1000 is a 'real' supported frequency? > > > > > > Please try adding the following lines to your /boot/loader.conf and > > > rebooting, then paste what 'sysctl dev.cpu' says after that? Also > check > > > if just doing this makes any difference to your overheating issue, a= s > it > > > has for some people. > > > > > > hint.p4tcc.0.disable=3D"1" > > > hint.acpi_throttle.0.disable=3D"1" > > > hint.p4tcc.1.disable=3D"1" > > > hint.acpi_throttle.1.disable=3D"1" > > > > > > You need both pairs; if you just disable p4tcc, acpi_throttle would > > > attach and provide those same frequencies, so would be no advantage. > > > > > > You may also find 'Fighting for the power' by Alexander Motin useful= , > in > > > particular enabling your available C2 state to reduce idle power use= : > > > > > > > http://lists.freebsd.org/pipermail/freebsd-current/2009-May/006436.html > [..] > > > Ok, thanks for it. The topic of Alexandre is very useful! So, i modify > my > > loader.conf an rc.conf file by adding lines you told me to write > > (loader.conf) and lines to enable C2 and others to reduce number of > sounds > > genertaed interrupts (see 'Fighting for the power' of Alexandre). > > Yes C2 should help overall, even on CPU-intensive tasks like buildworld, > and advice on how to to power-down subsystems you're not using is handy. > > Is there any mention in your BIOS settings about 'C1E' or similar? > > > I reboot and as you have asked me, the output of systcl dev.cpu after > > reboot : http://pastebin.com/bajvzy1W > > : dev.cpu.0.freq: 250 > : dev.cpu.0.freq_levels: 2000/35000 1750/30625 1500/26250 1250/21875 > : 1000/17500 750/13125 500/8750 250/4375 > : dev.cpu.0.cx_supported: C1/1 C2/57 > : dev.cpu.0.cx_lowest: C2 > : dev.cpu.0.cx_usage: 5.51% 94.48% last 229us > > Well now I'm confused, unless your C2D actually is really providing all > of those frequencies out of the box, without any throttling driver? > > Are you sure that after booting with those hints in /boot/loader.conf > (check: in /boot directory) that no lines at all are shown matching: > > % egrep 'p4tcc|acpi_throttle' /var/run/dmesg.boot > > If that shows nothing, then I've been way off-base about this .. > > > I tried to see how to behave my laptop (regarding fan noise and heat). > > Overall, i think it's a bit better, less noisy but not really perfect > (sorry > > about my vagueness). > > > > I didn't do all steps of the topic of Alexandre and maybe after do the= m, > it > > will be better again... > > First, a little (understandable) confusion; the 'Fighting for the power' > post was by AlexandER Motin (mav@freebsd.org), the developer of recent > snd_hda and mods to the powerd algorithms, among other things. It was > AlexandRE Kovalenko, note spelling, (cc'd), who replied offering to look > through your BIOS ASL code if you dump it out and post it somewhere, as > detailed on the ACPI debugging page. > > > I tried to do an high cpu task but same behavor, system shuting down > (heat > > exceed 92=B0C, critical...) > > Hmm, there was no 92C mentioned before; _HOT was 90C and I don't think > FreeBSD uses _HOT at all, just _PSV and _CRT (any corrections welcome) > > > I will to learn more about acpi debug and ASL from the handbokk and > share > > you more about these. > > Good idea. Generating your ASL is simple using those instructions, and > Alexandre has a track record at spotting problems, especially thermal, > among others who might be interested in looking through it. > > But please confirm there's no mention of p4tcc or acpi_thermal in dmesg? > > cheers, Ian Hey ! My laptop is sweating! :) So, after reading different manuals and others threads on the interdet, i tried to tunn a bit my loader.conf with sysctl values but there are somethings i definitly not understand. Fist of all, Ian, i do what you told me to do about p4tcc or acpi_thermal mention in my dmesg.boot file. No mentions found. Next, i noticed that my temp increases until 80C but not higher, significative? Now, about the _PSV and _CRT values. I can set these but i don't what value i have to use for these... Someone can advise me on that, regarding my proc spefications. Then, i generated my asl file and tried to compile it (as explained in the handbook) to detect some errors but no errors, only warnings and optization= s and i will post it on the freebsd-acpi mailing list or somewhere else where someone might be abble to read it and detect something wrong. However (and it s a bit funny ;)) : i've got an panic after around 4min : dev =3D ad4s1f, block =3D 1, fs =3D /usr > panic: ffs_blkfree: freeing free block > cpuid=3D1 > Uptime 4m41s > Cannot dump. Device not found or unavailable Further, i can't shutdown or reboot my laptop, it block on 'Uptime XX' and it never done... I see one sysct value on the acpi manual but i've not tried yet. I enabled the acpi debug (only error) but i don't know where i can read thi= s output... (don't find this information in the manuals). To conclude, i'm a bit confused and i don't what is the problem and where i have to go deeper, acpi bug? Maybe unable acpi and see what happend can be interessting? (wait your opinion before do it). After all, this problem is a good way to learn more about FreeBSD arch and linux overall. Train my english and develop the habit to use the documentation (i.e man page and books). When i will have the suitable materials, i will try to 'clean' my fans but = i don't think i have this kind of problem. PS : i don't really know i can consult the BIOS options and i don't respond you about C1E but i see something really wirred. In my BIOS system overview= , my model of laptop is dv5 notebook PC oO, it's not true! So, i wait your feedbacks about that, it's maybe the cause of all my problems? I hope (or not).