From owner-freebsd-questions@freebsd.org Tue Nov 13 14:29:13 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55A4E11270D4 for ; Tue, 13 Nov 2018 14:29:13 +0000 (UTC) (envelope-from igorr@pochta-mx.canmos.ru) Received: from pochta-mx.canmos.ru (pochta-mx.canmos.ru [89.107.127.240]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B72B986B05 for ; Tue, 13 Nov 2018 14:29:12 +0000 (UTC) (envelope-from igorr@pochta-mx.canmos.ru) Received: from pochta-mx.canmos.ru (pochta-mx.canmos.ru [89.107.127.240]) by pochta-mx.canmos.ru (Postfix) with ESMTP id 8111C2DBB757; Tue, 13 Nov 2018 17:22:19 +0300 (MSK) X-Spam-Checker-Version: SpamAssassin 3.3.2-pochta_20120910 (2011-06-06) on pochta.canmos.ru X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2-pochta_20120910 Received: from pochta-mx.canmos.ru (pochta-mx.canmos.ru [89.107.127.240]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by pochta-mx.canmos.ru (Postfix) with ESMTPS; Tue, 13 Nov 2018 17:22:19 +0300 (MSK) Date: Tue, 13 Nov 2018 17:22:19 +0300 (MSK) From: "Igor V. Ruzanov" X-X-Sender: igorr@pochta.canmos.ru To: Thomas Mueller cc: freebsd-questions@freebsd.org Subject: Re: Program to find CPU temperature? In-Reply-To: <20181113115825.80447.qmail@mail.canmos.ru> Message-ID: References: <20181113115825.80447.qmail@mail.canmos.ru> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-GPG-PUBLIC-KEY: 1024D/F433BDD5 2009-06-17 Igor V. Ruzanov X-GPG-FINGERPRINT: 5030 C793 4238 FAFF 827F 0E99 FDCE 63DD F433 BDD5 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Rspamd-Queue-Id: B72B986B05 X-Spamd-Result: default: False [0.70 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.78)[-0.777,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.40)[0.403,0]; NEURAL_HAM_LONG(-0.91)[-0.911,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[canmos.ru]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: pochta-mx.canmos.ru]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[twc.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:39821, ipnet:89.107.120.0/21, country:RU]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.00)[country: RU(-0.01)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2018 14:29:13 -0000 The modern way to check CPU temperatures (mostly for Xeon-based servers), its just to load kernel module 'coretemp': kldload coretemp And see the temperatures via sysctl interface: sysctl -a | grep tempe dev.cpu.0.temperature: 31.0C dev.cpu.1.temperature: 31.0C dev.cpu.2.temperature: 33.0C dev.cpu.3.temperature: 33.0C dev.cpu.4.temperature: 29.0C dev.cpu.5.temperature: 29.0C dev.cpu.6.temperature: 32.0C dev.cpu.7.temperature: 32.0C dev.cpu.8.temperature: 30.0C dev.cpu.9.temperature: 30.0C dev.cpu.10.temperature: 29.0C dev.cpu.11.temperature: 29.0C dev.cpu.12.temperature: 22.0C dev.cpu.13.temperature: 22.0C dev.cpu.14.temperature: 22.0C dev.cpu.15.temperature: 22.0C dev.cpu.16.temperature: 22.0C dev.cpu.17.temperature: 22.0C dev.cpu.18.temperature: 24.0C dev.cpu.19.temperature: 24.0C dev.cpu.20.temperature: 24.0C dev.cpu.21.temperature: 24.0C dev.cpu.22.temperature: 28.0C dev.cpu.23.temperature: 28.0C |I am looking for a program to find the CPU and perhaps system temperature, either in base system or ports. | |I tried "sysctl -a | grep "temp" (or temperature) and couldn't find anything. | |NetBSD has envstat in base system: | | Current CritMax WarnMax WarnMin CritMin Unit |[acpifan0] | state: FALSE |[acpifan1] | state: FALSE |[acpifan2] | state: TRUE |[acpifan3] | state: FALSE |[acpifan4] | state: FALSE |[acpitz0] | temperature: 27.800 106.000 degC |[acpitz1] | cpu0/cpu1/cpu2/cpu3/cpu4/cpu5/c: 29.800 106.000 degC |[coretemp0] | cpu0 temperature: 56.000 degC |[coretemp1] | cpu1 temperature: 59.000 degC |[coretemp2] | cpu2 temperature: 57.000 degC |[coretemp3] | cpu3 temperature: 55.000 degC | | |but there appears to be nothing like that in FreeBSD. | |This is the computer without the overheating problem. Other computer, with the overheating problem, makes me wonder if the heatsink itself, as opposed to the CPU fan, is no longer functional. | |Otherwise, perhaps something could be going amiss on the CPU or motherboard. | |Tom | |_______________________________________________ |freebsd-questions@freebsd.org mailing list |https://lists.freebsd.org/mailman/listinfo/freebsd-questions |To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" |