Question about cpu temp in sysctl hw.sensors

Previous thread: dmesg IBM x3650 OpenBSD 4.3 by Marcos Laufer on Tuesday, October 7, 2008 - 1:26 pm. (20 messages)

Next thread: Random crashes with Intel D945GCLF2 by Damian Gerow on Tuesday, October 7, 2008 - 4:21 pm. (3 messages)
From: new_guy
Date: Tuesday, October 7, 2008 - 3:25 pm

I get this output:

hw.sensors.cpu0.temp0=39.00 degC
hw.sensors.lm1.temp0=45.00 degC
hw.sensors.lm1.temp1=22.00 degC
hw.sensors.lm1.temp2=31.50 degC
hw.sensors.lm1.fan1=2070 RPM

But, I'm rather certain that the third line (22.00 degC) is the actual temp
of the CPU as this is what the BIOS reports as well as other operating
systems (I quad boot this box). This is an under-clocked Intel Celeron cpu
under very little load with good fans, so while low, that temp of 22 degC is
most likely correct. How does OpenBSD gather this temp?

cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Celeron(R) CPU 430 @ 1.80GHz, 907.57 MHz


-- 
View this message in context: http://www.nabble.com/Question-about-cpu-temp-in-sysctl-hw.sensors-tp19868637p19868637...
Sent from the openbsd user - misc mailing list archive at Nabble.com.

From: Theo de Raadt
Date: Tuesday, October 7, 2008 - 3:32 pm

Unfortunately we don't know what the BIOS knows.  We don't know what
sensors is where, so you will have to make do.

To find out how OpenBSD gathers this, there have been presentations

From: Vadim Zhukov
Date: Tuesday, October 7, 2008 - 3:44 pm

Maybe I'm wrong but it's VERY unlikely that your CPU has the lowest
temperature of all. Moreover, CPU temp is usually the highest available.

"cpu0.temp" AFAIK is read from CPU itself (modern Intel and AMD CPUs have
such sensors). "lm1.*" are read from on-motherboard chip, see lm(4).

So where is your dmesg? And what are other 3 OSes you run? Which software

--
  Best wishes,
    Vadim Zhukov

From: Ted Unangst
Date: Tuesday, October 7, 2008 - 3:58 pm

It asks the CPU. Of course there's not much documentation, so you  

Previous thread: dmesg IBM x3650 OpenBSD 4.3 by Marcos Laufer on Tuesday, October 7, 2008 - 1:26 pm. (20 messages)

Next thread: Random crashes with Intel D945GCLF2 by Damian Gerow on Tuesday, October 7, 2008 - 4:21 pm. (3 messages)