From owner-freebsd-stable@FreeBSD.ORG Fri Feb 5 13:35:05 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C94ED1065672 for ; Fri, 5 Feb 2010 13:35:05 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5051D8FC14 for ; Fri, 5 Feb 2010 13:35:05 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o15DYmUT070828; Fri, 5 Feb 2010 14:35:04 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o15DYm0a070827; Fri, 5 Feb 2010 14:34:48 +0100 (CET) (envelope-from olli) Date: Fri, 5 Feb 2010 14:34:48 +0100 (CET) Message-Id: <201002051334.o15DYm0a070827@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 05 Feb 2010 14:35:04 +0100 (CET) Cc: Subject: amdtemp(4) oddities, Athlon 64 X2 (8-stable) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2010 13:35:06 -0000 This is a RELENG_8 box, csupped on 2010-01-22, kernel built with amdtemp(4). It's a dual-core Athlon 64, running i386 (32bit) SMP. Excerpt from dmesg: CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (2009.28-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x40fb2 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f [...] FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) [...] amdtemp0: on hostb3 sysctl displays the following values (idle system): dev.cpu.0.temperature: 14.0C dev.cpu.1.temperature: 14.0C dev.amdtemp.0.sensor0.core0: 14.0C dev.amdtemp.0.sensor0.core1: 22.0C dev.amdtemp.0.sensor1.core0: -49.0C dev.amdtemp.0.sensor1.core1: -49.0C hw.acpi.thermal.tz0.temperature: 40.0C Upon consecutive calls, the first three vary from 13.0C to 16.0C, which is below room temperature, so it can't be true. The fourth one varies from 22.0C to 23.0C, which might be correct, although it still seems a bit low, even on an idle system. Under load (buildworld -j4), it looks like this: dev.cpu.0.temperature: 38.0C dev.cpu.1.temperature: 39.0C dev.amdtemp.0.sensor0.core0: 38.0C dev.amdtemp.0.sensor0.core1: 44.0C dev.amdtemp.0.sensor1.core0: -49.0C dev.amdtemp.0.sensor1.core1: -49.0C hw.acpi.thermal.tz0.temperature: 40.0C That's the maximum readings I've seen: The first three go up to 39.0C, the fourth one reaches 44.0C (I've never seen values higher than this). The first three are always about the same (+/-1), and the fourth is always 4 to 6 more. When buildworld -j4 is finished, the values quickly go down and reach the ones given for the idle system above after a few minutes. BTW, the machine is running powerd(8) which reduces the CPU clock from 2000 to 1000 when it is idle. The sensor1.* values are always fixed at -49.0C, and the ACPI temperature stays at exactly 40.0C. These three don't seem to be connected to any actual sensors. I'm not too worried about those. I've got two questions: First, I'm wondering why sensor0.core1 is different from all the other values. I think it should be the same as the dev.cpu.1.temperature value. This smells like a bug. According to the description in the manual page, I would expect it to be the same. Second, the temperature readings on the idle system are too low. I don't think they can realistically be below room temperature. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd With Perl you can manipulate text, interact with programs, talk over networks, drive Web pages, perform arbitrary precision arithmetic, and write programs that look like Snoopy swearing.