Date: Fri, 10 Aug 2007 12:50:49 +0200 From: Pietro Cerutti <gahr@gahr.ch> To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= <des@des.no>, freebsd-hackers@freebsd.org Subject: Re: Core temperature Message-ID: <46BC4309.8000802@gahr.ch> In-Reply-To: <86myx0pa9i.fsf@ds4.des.no>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Dag-Erling Smørgrav wrote: > I've written a quick-and-dirty driver for the built-in digital > temperature sensor in Intel's Core and Core 2 CPUs (and Xeons built on > the Core architecture). The driver exports four sysctl nodes under > hw.coretemp: > > hw.coretemp.tjmax Maximum core temperature (currently hardcoded > To 100°C, may actually be 85°C on some systems) > > hw.coretemp.delta current temperature in °C below Tj(max) > > hw.coretemp.interrupt Lower 32 bits of the IA32_THERMAL_INTERRUPT MSR > > hw.coretemp.status Lower 32 bits of the IA32_THERMAL_STATUS MSR > > I intend to move these into dev.cpu.N in a later version. > > Note that the driver currently makes no attempt to handle multi-CPU > systems; it will simply report the temperature of the CPU that contains > whichever core the requesting process happens to be running on. > > http://people.freebsd.org/~des/software/coretemp-20070810.diff > Hi Des, thanks a lot! Could you please try to explain these results? > sysctl hw.coretemp.tjmax hw.coretemp.delta hw.acpi.thermal.tz0.temperature hw.coretemp.tjmax: 100 hw.coretemp.delta: -38 hw.acpi.thermal.tz0.temperature: 66.8C Shouldn't hw.coretemp.delta be (hw.coretemp.tjmax - hw.acpi.thermal.tz0.temperature)? Thanks! > DES -- Pietro Cerutti PGP Public Key: http://gahr.ch/pgp [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGvEMNwMJqmJVx944RChMVAJ45KHQjZExoUMZ+gYR9VS/5w2GdLgCgoEYV fBjHXQCU2BFttleAg909Pm0= =89Ap -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46BC4309.8000802>
