From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 8 12:30:36 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A29B106566B for ; Sat, 8 Oct 2011 12:30:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id A22D38FC08 for ; Sat, 8 Oct 2011 12:30:33 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p98CUTJA053680 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 8 Oct 2011 15:30:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id p98CUTXk010286; Sat, 8 Oct 2011 15:30:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id p98CUTfZ010285; Sat, 8 Oct 2011 15:30:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 8 Oct 2011 15:30:29 +0300 From: Kostik Belousov To: Harald Servat Message-ID: <20111008123029.GD1511@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Anc4Ty0odT0wy+qc" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: FreeBSD Hackers Subject: Re: Power usage on FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2011 12:30:36 -0000 --Anc4Ty0odT0wy+qc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 08, 2011 at 01:44:37AM +0200, Harald Servat wrote: > Dear hackers, >=20 > does anyone know if I can measure power consumption of the processor via > software by using FreeBSD on a Intel Core i5? Any pointer on this, or oth= er > architectures, will be welcome. >=20 > Thank you very much in advance! Measuring the power consumption by CPU would probably require you to get some NDA documentation from Intel. On the Core-class CPUs there are definitely the facilities related to the Turbo Mode, that show inner working of the power management microcontroller. See the Linux IPS driver, which controls both CPU and Northbridge/GPU. I was unable to find a public documentation about it. Some information is present in the CPU/PCH datasheets. On the other hand, if you are only concerned about whole system power consumption, use a laptop or a managed UPS. --Anc4Ty0odT0wy+qc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6QQmQACgkQC3+MBN1Mb4gJPgCgiU20WJkBo9I8Vk34vk6ep7yH 1y8AoK1bQfzLtNUbb7FmhUQy1ZxaRUHM =Q1vN -----END PGP SIGNATURE----- --Anc4Ty0odT0wy+qc--