howto read CPU temp ?
Hello,
I use several dual CPU (UIII+/900) blade 2000. This morning, one of
these stations has halted. I can see in /var/log/syslog :
May 26 09:00:10 rayleigh kernel: temp0: Above safe CPU operating temperature, 80 C. ... May 26 09:00:41 rayleigh kernel: temp0: Above safe CPU operating temperature, 81 C. ... May 26 09:01:11 rayleigh kernel: temp0: Above safe CPU operating temperature, 83 C. ... May 26 09:01:36 rayleigh kernel: temp0: Outside of safe CPU operating temperature, 85 C. ... May 26 09:01:36 rayleigh kernel: kenvctrld: Shutting down the system now. May 26 09:01:36 rayleigh shutdown[11935]: shutting down for system halt
I have reduced maximal CPU frequencies, but I want to use cpufreqd (or
some other script to modify cpu governor). I don't see where kernel writes CPU temperature ? I find anything in /sys or /proc. How can I obtain this temp ?
Regards,
JKB
From: BERTRAND Joël <[email protected]>
Date: Tue, 26 May 2009 09:53:50 +0200
Quoted 4 lines
I have reduced maximal CPU frequencies, but I want to use cpufreqd (or some other script to modify cpu governor). I don't see where kernel writes CPU temperature ? I find anything in /sys or /proc. How can I obtain this temp ?
This information is not exported. There was a patch to add this and adjust some of the heuristics in the driver but the patch was very poorly written.
The existing module adjusts the CPU and system fan speeds dynamically in response to temperature, and will shutdown the system if the temperature gets over a certain max threshold.
Quoted 10 lines · David Miller
From: BERTRAND Joël <[email protected]>
Date: Tue, 26 May 2009 09:53:50 +0200Quoted 4 lines
I have reduced maximal CPU frequencies, but I want to use cpufreqd (or some other script to modify cpu governor). I don't see where kernel writes CPU temperature ? I find anything in /sys or /proc. How can I obtain this temp ?
Quoted 7 lines
This information is not exported. There was a patch to add this and adjust some of the heuristics in the driver but the patch was very poorly written.
The existing module adjusts the CPU and system fan speeds dynamically in response to temperature, and will shutdown the system if the temperature gets over a certain max threshold.
Thanks a lot for your answer. I shall add a /proc/bbc_i2c that only
exports CPU, ambiant values and fan speed.
Regards,
JKB
From: BERTRAND Joël <[email protected]>
Date: Tue, 26 May 2009 10:48:09 +0200
Quoted 2 lines
Thanks a lot for your answer. I shall add a
/proc/bbc_i2cthat only exports CPU, ambiant values and fan speed.
Ok.
I didn't persue this because long ranger I want to move all of the BBC stuff over to proper I2C layer and HW monitor layer drivers.
I even did this work, but the I2C maintainer didn't like how I implemented I2C bus selection support for these BBC I2C chips. So I need to redo that work at some point to finish things off
See the patches under:
http://vger.kernel.org/~davem/i2c/
some of which are already in the tree.