source data for host CPU temperature

Ole subbsd at gmail.com
Mon Dec 8 05:05:32 PST 2008


Hello maillist,

Whether there is a unique, a  general method of fetching of statistics on CPU 
temperature in FreeBSD. The general method - is available in view of excluding 
vendor-specific healh-agents with their vendors lock-in API.

As i know some way for this: smb(4) (for old PC?), coretemp(4) (this is for 
new and only Intel hardware ?) and ipmi(4) if available, so each machine 
customize for temp statistics throuch individual setup for source data?

And it is necessary to prefer what data if it is some given. For example 2 
commands on host give diffrent result:
(With 'ipmitool sensor |grep -i temp)
--
Ambient Temp     | 26.000     | degrees C  | ok    | na        | na        | 
na        | 32.000    | na        | 39.000
CPU 1 Temp       | na         | degrees C  | na    | na        | 74.000    | 
-128.000  | -48.000   | na        | na
CPU 2 Temp       | na         | degrees C  | na    | na        | 74.000    | 
-128.000  | -48.000   | na        | na
CPU 1 OverTemp   | 0x0        | discrete   | 0x0080| na        | na        | 
na        | na        | na        | na
CPU 2 OverTemp   | 0x0        | discrete   | 0x0080| na        | na        | 
na        | na        | na        | na
--

<<  i get 74C on my CPU1 and CPU2

(with coretemp(4) i get individual per-core sensor)
% sysctl -a |egrep -E "cpu\.[0-9]+\.temp"
dev.cpu.0.temperature: 38
dev.cpu.1.temperature: 45
dev.cpu.2.temperature: 42
dev.cpu.3.temperature: 69

ipmi/coretemp facility is fetching information for CPU from diffrent sensors?

And how much correctly with coretemp(4) to receive the general temperature 
(one number as in Bios) if average(sum(core temperature)) / (num of core) ? 
Thanks in advance!





More information about the freebsd-questions mailing list