From owner-freebsd-questions@FreeBSD.ORG Thu May 14 09:58:28 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4497BCD for ; Thu, 14 May 2015 09:58:28 +0000 (UTC) Received: from smtp1.bway.net (smtp1.bway.net [216.220.96.27]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9F2A71A9F for ; Thu, 14 May 2015 09:58:28 +0000 (UTC) Received: from gecko4 (host-216-220-115-31.dsl.bway.net [216.220.115.31]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: m1316v@bway.net) by smtp1.bway.net (Postfix) with ESMTPSA id 0D8C195861; Thu, 14 May 2015 05:58:27 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bway.net; s=mail; t=1431597507; bh=wnaB4UjPL1aE/vobAxkvMAhMRXfDUqgou43imih/agA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:Reply-To; b=AFWmX3/dQ2I5XshSxbY95P/S/46akDSdu90J0TXEP0tz+WIshNiXoUbSyWJ77SFu1 T/2kOd8BE+5ootR6lEwfg4Z9WRqss72GTIHocvvnWUODvB4B/9IysTel6VgnXbj1DZ bwI+4MS079z1O7nmsdGni+2BYheI//WWRGfYIGKs= Date: Thu, 14 May 2015 05:58:26 -0400 From: mfv To: "William A. Mahaffey III" Cc: "FreeBSD Questions !!!!" Subject: Re: sysctl question Message-ID: <20150514055826.01e841ae@gecko4> In-Reply-To: <55541052.6020802@hiwaay.net> References: <55541052.6020802@hiwaay.net> Reply-To: mfv@bway.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2015 09:58:28 -0000 Hello William, I had the same problem using amdtemp but used the sysctl setting "dev.amdtemp.%d.sensor_offset" to make it more accurate. The value was determined by comparing the unadjusted value of admtemp with the value shown in the BIOS. In my case the setting in /etc/sysctl.conf is: dev.amdtemp.0.sensor_offset=24 A room thermometer was also helpful to measure the difference by comparing the difference between the room temperature and the BIOS after the CPU was placed under load. To read the value I then bound the F2-key in csh.cshrc file as follows: bindkey -c "^[OQ" 'sysctl -e dev.amdtemp.0.core0' The results of the reading are not as accurate as I would like but are an improvement. Cheers ... __o _ \<,_ Marek (+)/ (+) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On Wed, 13 May 2015 22:08:57 -0453 "William A. Mahaffey III" wrote: > > > My sysctl is reporting nonsense temps for my CPU: > > [wam@kabini1, ~, 10:04:02pm] 357 % sysctl -A | egrep > '(temperature|usage)' dev.cpu.0.temperature: 10.6C > dev.cpu.0.cx_usage: 100.00% 0.00% last 445us > dev.cpu.1.temperature: 10.6C > dev.cpu.1.cx_usage: 100.00% last 11us > dev.cpu.2.temperature: 10.6C > dev.cpu.2.cx_usage: 100.00% last 21us > dev.cpu.3.temperature: 10.6C > dev.cpu.3.cx_usage: 100.00% last 9us > [wam@kabini1, ~, 10:04:10pm] 358 % sysctl -a | grep -i model > hw.model: AMD Sempron(tm) 3850 APU with Radeon(tm) R3 > dev.rgephy.0.%pnpinfo: oui=0xe04c model=0x0 rev=0x0 > [wam@kabini1, ~, 10:04:14pm] 359 % uname -a > FreeBSD kabini1.local 9.3-RELEASE-p13 FreeBSD 9.3-RELEASE-p13 #0: Tue > Apr 7 03:01:12 UTC 2015 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > [wam@kabini1, ~, 10:05:08pm] 360 % > > > Room temp is about 75F, or ~23C. CPU is generating heat, > thermodynamically impossible for it to be cooler than room temp. > Obviously not critical, but I would like to know reasonably > accurately how hot the CPU is in real time. Is this a sufficient bug > report ? TIA .... > >