From owner-freebsd-questions@FreeBSD.ORG Mon Mar 31 18:08:10 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4EA8D840 for ; Mon, 31 Mar 2014 18:08:10 +0000 (UTC) Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com [IPv6:2607:f8b0:400e:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 277BDCD for ; Mon, 31 Mar 2014 18:08:10 +0000 (UTC) Received: by mail-pa0-f46.google.com with SMTP id kx10so3080316pab.33 for ; Mon, 31 Mar 2014 11:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=5d2xfpRazjWCF764x15HHE60LTsnTYJeBNfXHiizqmk=; b=M4a4rxC5sm2jCle8jNVhVUMg0FbIeixNb4QyTVeRgepA5Bnw+H70rYZbZaRyBCmgKe DHzhqvgkc/Mo4qP3V0Dl6zu/CSRJPFekgPGjzCCVS5DyBNlbqxoHroMXDXzndSpTtwmd aEr91Iq1u5+i91S5+qiph1JGeNwxDTEFiVjwc/9ghkDym8hanz+39psbDackahupLADs sg9Sslhi55fwD9q87FhIwd1PA3opHEI1NUY1itVhnQVS7Ukee8aRKeFHXh8MjpJ7vMvg fJsibFgS7s87wyc7ubDIu4D5kFfy75FCcxVhP0qhdbQOfI1EJZFpBD8kVCq8WJcaUvmW tMaQ== MIME-Version: 1.0 X-Received: by 10.68.171.193 with SMTP id aw1mr9728103pbc.117.1396289289786; Mon, 31 Mar 2014 11:08:09 -0700 (PDT) Received: by 10.68.150.41 with HTTP; Mon, 31 Mar 2014 11:08:09 -0700 (PDT) In-Reply-To: References: Date: Mon, 31 Mar 2014 14:08:09 -0400 Message-ID: Subject: Re: CPU Overheating? From: "illoai@gmail.com" To: Walter Hurry Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2014 18:08:10 -0000 On 30 March 2014 20:11, Walter Hurry wrote: > I have a bog-standard Acer laptop with FreeBSD 9.2 (amd64). > > CPU is AMD Athlon(tm) 64 X2 Dual-Core Processor TK-42 (1596.09-MHz K8-cl= ass CPU) per dmsg. > > From time to time, it shuts off without warning, as if the power cable ha= s been pulled out. Nothing in any of the logs, and when I power up again it= starts normally after replaying the journal. > > The shut-off is invariably when it is doing a compile of a big port. I th= erefore suspect that the CPU is overheating and that the BIOS is causing th= e shutdown. > > To investigate the problem, I have done a 'kldload coretemp' and am perio= dically running: > 'sysctl hw.acpi.thermal.tz0.temperature'. So far (only 6 runs) this is r= eporting temperatures between 76C and 84C. > > Question 1: Is this the canonical way to monitor CPU temperature? > Question 2: Is this too hot? > Question 3: I plan to load the module in /boot/loader.conf and set up a c= ron job to run every minute and log the result to a file. Is this sensible,= or overkill? > amdtemp.ko should give you a bunch of new sysctls under 'dev.amdtemp' to monitor 84=B0C is too hot for a desktop processor, & pretty close to too hot for a laptop. With decent airflow I only rarely get above 75=B0C on my laptop. Things do have to be disassembled & cleaned from time to time, though. It's not such a bad idea to run a script to log those values every minute or so if you suspect overheating. You'll probably lose the last value or two when your machine shuts off, though. Maybe write the output to a file on an nfs server? Or get an old dot-matrix printer & log to that? --=20 --