From owner-freebsd-questions@freebsd.org Sat Jul 4 13:47:20 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2514195A3 for ; Sat, 4 Jul 2015 13:47:20 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 B4388199A for ; Sat, 4 Jul 2015 13:47:19 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (rbn1-216-180-76-134.adsl.hiwaay.net [216.180.76.134]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t64DlH0R007660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 4 Jul 2015 08:47:17 -0500 Message-ID: <5597E3E5.5050103@hiwaay.net> Date: Sat, 04 Jul 2015 08:53:32 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Best console hardware monitor pkg? References: <559760A3.7000901@sneakertech.com> <5597DF28.50903@FreeBSD.org> In-Reply-To: <5597DF28.50903@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed 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: Sat, 04 Jul 2015 13:47:20 -0000 On 07/04/15 08:33, Matthew Seaman wrote: > On 04/07/2015 05:27, Quartz wrote: >> What's the general opinion these days on the "best" utility for >> monitoring all the temperature probes, fan speeds, and other readouts >> from a motherboard? (One that doesn't need X and can be installed >> through pkg). > This depends on exactly what sort of hardware you have. There are > different monitoring tools depending on your motherboard and processor. > > With modern CPUs there is usually an on-die thermal sensor which you can > interrogate by loading a kernel module: see coretemp(4) and amdtemp(4) > -- using these will let you read out CPU temperature using sysctl(1). > > Unfortunately access to other monitoring variables is less consistent. > Probably your best bet is if you've a server class motherboard with some > sort of lights-out management capability -- or indeed many other > motherboards nowadays. In which case you should be able to load the > ipmi(4) kernel module and install ipmitool(8) from ports to be able to > query it. Using IPMI enables you to get, and possibly set, a lot of the > stuff that's usually only accessible from the system bios, as well as > access to on-board temperature sensors, PSU voltages, chassis intrusion > sensors and fan speeds. Now, while the tool and the management > interface is common to a lot of different manufacturers, exactly how the > monitoring data is structured is not, so it might take a bit of shell > scripting to massage the data into a usable form. > > Cheers, > > Matthew > > I have both xmbmon & amdtemp installed, & I think amdtemp is giving bad values: [root@kabini1, /etc, 8:50:06am] 918 % sysctl -A | egrep '(temperature|usage)' dev.cpu.0.temperature: 12.3C dev.cpu.0.cx_usage: 100.00% 0.00% last 15us dev.cpu.1.temperature: 12.3C dev.cpu.1.cx_usage: 100.00% last 2173us dev.cpu.2.temperature: 12.3C dev.cpu.2.cx_usage: 100.00% last 16us dev.cpu.3.temperature: 12.3C dev.cpu.3.cx_usage: 100.00% last 9us [root@kabini1, /etc, 8:50:08am] 919 % mbmon -c1 Temp.= 36.0, 0.0, 0.0; Rot.= 0, 0, 0 Vcore = 2.56, 3.78; Volt. = 3.36, 5.64, 6.57, 2.53, -2.64 [root@kabini1, /etc, 8:50:09am] 920 % 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 [root@kabini1, /etc, 8:50:27am] 921 % CPU is jaguar kabini (Sempron 3850). ~12C is thermodynamically impossible for room temp of around 20C & the CPU producing heat :-). -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.