Skip to contentSkip to conversation

lmsensors and gkrellm

lm-sensors Carren Stuart 3 participants 6 messages Jan 13, 2008

lore
Share & tools
lore
#0 lore raw

Hi :-)

I'm hoping somebody here can enlighten me.

I'm running OpenSUSE 10.3 on an Acer Travelmate laptop with an Intel Core Duo 1.6GHz processor.

I finally figured out how to get lmsensors running and configured so that I could get my hdd temps showing up in gkrellm.

I'm confused about something though ....

Prior to getting this working GKrellM showed under CPU temp:

thermal_zone/TZ00
thermal_zone/TZ01

with corresponding temps (dual core processor)

Since fixing lmsensors however it now shows two extra entries:

coretemp-hwmon0/temp1
coretemp-hwmon1/temp1

Also with corresponding temp readings.

BUT the readings are not the same. The coretemp readings are several degrees lower than the thermal_zone readings, and the two cores are often showing different temps, whereas in the thermal_zone readings, the cores are nearly always showing the same temp.

I'm assuming the coretemps are what is being detected by lmsensors, so what is reading the thermal_zone temps?

Which readings are likely to be the most accurate ones i.e. the ones I should take notice of?

EDIT: Just as an example ...

right now the thermal_zone reading is showing temps of 51 and 51. The coretemp reading is showing 45 and 41. That's a significant difference when it comes to knowing when to be concerned about a particular temp.

If anyone can explain to me what the difference is between the thermal_zone readings and the coretemp readings, and which of the two is considered more accurate/reliable, I'd appreciate it.

Thanks in advance,

~ Carren

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

Hi Carren,

Quoted 43 lines · Carren Stuart

Hi :-)

I'm hoping somebody here can enlighten me.

I'm running OpenSUSE 10.3 on an Acer Travelmate laptop with an Intel Core Duo 1.6GHz processor.

I finally figured out how to get lmsensors running and configured so that I could get my hdd temps showing up in gkrellm.

I'm confused about something though ....

Prior to getting this working GKrellM showed under CPU temp:

thermal_zone/TZ00
thermal_zone/TZ01

with corresponding temps (dual core processor)

Since fixing lmsensors however it now shows two extra entries:

coretemp-hwmon0/temp1
coretemp-hwmon1/temp1

Also with corresponding temp readings.

BUT the readings are not the same. The coretemp readings are several degrees lower than the thermal_zone readings, and the two cores are often showing different temps, whereas in the thermal_zone readings, the cores are nearly always showing the same temp.

I'm assuming the coretemps are what is being detected by lmsensors, so what is reading the thermal_zone temps?

Which readings are likely to be the most accurate ones i.e. the ones I should take notice of?

EDIT: Just as an example ...

right now the thermal_zone reading is showing temps of 51 and 51. The coretemp reading is showing 45 and 41. That's a significant difference when it comes to knowing when to be concerned about a particular temp.

Quoted 7 lines

If anyone can explain to me what the difference is between the thermal_zone readings and the coretemp readings, and which of the two is considered more accurate/reliable, I'd appreciate it.

Thanks in advance,

~ Carren

The coretemp readings come from a digital temperature sensor inside the processor. The processor provides PCI device entries which access these internal sensors.

The thermal_zone readings come from ACPI, so they might come from any source, but 99% of the time, they are analog temperature sensors on the processor, read by converting from analog to digital on the motherboard. The processor does have a temperature sensor pin for each core, which is this analog sensor.

Surprisingly, you really have 4 temperature sensors. Each core has a digital and an analog sensor. The analog sensor is likely located on the top of the chip, inside its ceramic housing and close to the heatsink. On chips where this is the case, the analog sensor moves more slowly than the digital sensor, since the heat has to travel a short distance to reach the sensor. The digital sensor is likely located right next to the gates that are generating the heat.

Also keep in mind that the analog and digital sensors might be in different regions of the chip, and so one might heat up as its section of the chip is very active compared to the other.

What does this mean for you? Well, you don't want any of the sensors to go too high, since they are all measuring real temperatures.

Also, you might be able to cool things down faster by watching the coretemp sensors, since they respond more quickly to changes in the load on the chip. But your CPU fan is probably watching the analog sensors, so it will be slow to react to a sudden change in CPU temperature.

But don't feel like high temperatures mean instant death. Intel and Acer have probably taken good care to be sure the chip can't be permanently damaged -- in fact, if the chip actually gets close to damaging itself, the laptop will probably turn off, instantly, without warning.

At high temperatures, the chip may not be damaged but may not function right. If you get random segfaults and crashes that aren't software-related, and you are wondering what part of your hardware is the problem, having a few extra temperature sensors might help you diagnose your CPU's health.

Hope that helps,
David

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Carren Stuart
Quoted 9 lines · you

The coretemp readings come from a digital temperature sensor inside the processor. The processor provides PCI device entries which access these internal sensors.

The thermal_zone readings come from ACPI, so they might come from any source, but 99% of the time, they are analog temperature sensors on the processor, read by converting from analog to digital on the motherboard. The processor does have a temperature sensor pin for each core, which is this analog sensor.

One would think therefore that the coretemp values would generally read higher than the ACPI values, given that the coretemp sensors are embedded in the core? This isn't the case with mine however - the thermal_zone values are always significantly higher.

<SNIP>

Quoted 2 lines

What does this mean for you? Well, you don't want any of the sensors to go too high, since they are all measuring real temperatures.

Which is another area of confusion to me. I have tried to find out what the recommended temp range is for my processor, but when I emailed Intel they told me they couldn't help me as my processor was an OEM product not a retail product. They suggested I contact Acer, which I did, but never got a response, so I'm still flying blind as far as knowing what temps would be considered "high" or " cause for concern" for my processor.

Quoted 5 lines

Also, you might be able to cool things down faster by watching the coretemp sensors, since they respond more quickly to changes in the load on the chip. But your CPU fan is probably watching the analog sensors, so it will be slow to react to a sudden change in CPU temperature.

This is interesting. What puzzles me is that the thermal_zone values are nearly always exactly the same for both cores, whereas the coretemp values are almost always slightly different (which makes more sense to me)

Quoted 5 lines

But don't feel like high temperatures mean instant death. Intel and Acer have probably taken good care to be sure the chip can't be permanently damaged -- in fact, if the chip actually gets close to damaging itself, the laptop will probably turn off, instantly, without warning.

Well that's good to know.

Many thanks for the excellent explanation David. Much appreciated :-)

~ Carren

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Carren Stuart

Hi David, hi Carren,

Quoted 6 lines · Carren Stuart
Quoted 5 lines

I'm running OpenSUSE 10.3 on an Acer Travelmate laptop with an Intel Core Duo 1.6GHz processor.

I finally figured out how to get lmsensors running and configured so that I could get my hdd temps showing up in gkrellm.

Note: lm-sensors doesn't have anything to do with hard-disk drive temperature. HDD temperature is retrieved through SMART and we don't have any support for that.

Quoted 3 lines · David Hubbard

The coretemp readings come from a digital temperature sensor inside the processor. The processor provides PCI device entries which access these internal sensors.

Note: while this is true of AMD CPUs (k8temp is a PCI driver) this isn't how Intel CPUs work. The coretemp driver reads the temperature values from MSRs (model-specific registers) i.e. from the CPU directly.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#4 lore raw
In reply to Carren Stuart
Quoted 1 line · you

Hi David, hi Carren,

    Hi Jean :-)
Quoted 3 lines

Note: lm-sensors doesn't have anything to do with hard-disk drive temperature. HDD temperature is retrieved through SMART and we don't have any support for that.

I didn't realise that but it's really interesting, because, until I got lmsensors working correctly, I couldn't get my hdd temp to show up in Gkrellm. Once I got the sensors sorted the hdd temp automatically showed up - prior to that it wasn't reading correctly and was always showing 0C.

Quoted 8 lines · David Hubbard
Quoted 3 lines

The coretemp readings come from a digital temperature sensor inside the processor. The processor provides PCI device entries which access these internal sensors.

Note: while this is true of AMD CPUs (k8temp is a PCI driver) this isn't how Intel CPUs work. The coretemp driver reads the temperature values from MSRs (model-specific registers) i.e. from the CPU directly.

So does that make the coretemp values more accurate/reliable than the thermal_zone temps?

~Carren

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#5 lore raw
In reply to Carren Stuart

Hi Carren,

Quoted 6 lines
Quoted 3 lines

Note: while this is true of AMD CPUs (k8temp is a PCI driver) this isn't how Intel CPUs work. The coretemp driver reads the temperature values from MSRs (model-specific registers) i.e. from the CPU directly.

So does that make the coretemp values more accurate/reliable than the thermal_zone temps?

I stand corrected. Yes, I misunderstood how Intel CPUs report the digital temp sensor. But Carren, whether the CPU reports the data through PCI or through MSRs, it is just a digital temp sensor. (So, what does that mean for temp control? It just means another input.)

In response to your other question -- why would your digital temp sensors be lower? I can't claim any knowledge about how the chip is actually engineered. But my SWAG (Scientifically Wildly in-Accurate Guess) would be that the digital sensors are measuring the temperature much closer to the execution core, while the analog thermal_zone sensors are measuring the whole-chip average temperature. Intel Core Duo chips had the very first releases of the Merom design, and probably are more prone to overheat in the "misc" circuitry. That is, the execution unit just got a huge overhaul and is incredibly efficient. So if the digital temp sensor is close to it, it gives Intel some nice benchmarks, but isn't the main suspect of overheating on this particular design.

Or I could be completely wrong.

David

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors