Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296854 - sys-apps/lm_sensors : "sensors" does not show the same CPU temperature from command line and from apache
Summary: sys-apps/lm_sensors : "sensors" does not show the same CPU temperature from c...
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-14 09:50 UTC by Mickaël Bucas
Modified: 2010-01-26 22:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of emerge --info (emerge-info.txt,4.02 KB, text/plain)
2009-12-14 09:56 UTC, Mickaël Bucas
Details
Output of lscpi -vv (lspci-vv.txt,14.28 KB, text/plain)
2009-12-14 09:58 UTC, Mickaël Bucas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mickaël Bucas 2009-12-14 09:50:49 UTC
When I run "sensors" under apache in a mod_python script, the CPU temperature is not the same as shown on the command line under any user, including apache user.

When I run "sensors" in a PHP script, the CPU temperature is the same.




Reproducible: Always

Steps to Reproduce:
1. Run sensors in mod_python
2. Run sensors on command line
3. See the difference by 3 to 5 degrees



Expected Results:  
Temperature should be the same or near.

Values from Python -------------------
w83627thf-isa-0290
Adapter: ISA adapter
VCore:     +1.53 V  (min =  +1.40 V, max =  +1.60 V)              
+12V:     +12.04 V  (min = +11.49 V, max = +12.52 V)              
+3.3V:     +3.25 V  (min =  +3.20 V, max =  +3.41 V)              
+5V:       +5.07 V  (min =  +4.75 V, max =  +5.25 V)              
-12V:     -12.03 V  (min = -12.53 V, max = -11.54 V)              
V5SB:      +4.92 V  (min =  +4.76 V, max =  +5.24 V)              
VBat:      +2.62 V  (min =  +2.40 V, max =  +3.60 V)              
M/B Temp:    +43 C  (high =   +60 C, hyst =   +55 C)   sensor = thermistor           
CPU Temp:  +42.0 C  (high =   +80 C, hyst =   +75 C)   sensor = diode           
??? Temp:  +45.5 C  (high =   +60 C, hyst =   +55 C)   sensor = thermistor           
alarms:   Chassis intrusion detection                      ALARM
beep_enable:
          Sound alarm enabled

Values from command line -------------------
w83627thf-isa-0290
Adapter: ISA adapter
VCore:     +1.52 V  (min =  +1.40 V, max =  +1.60 V)
+12V:     +12.04 V  (min = +11.49 V, max = +12.52 V)
+3.3V:     +3.23 V  (min =  +3.20 V, max =  +3.41 V)
+5V:       +5.07 V  (min =  +4.75 V, max =  +5.25 V)
-12V:     -11.95 V  (min = -12.53 V, max = -11.54 V)
V5SB:      +4.92 V  (min =  +4.76 V, max =  +5.24 V)
VBat:      +2.62 V  (min =  +2.40 V, max =  +3.60 V)
M/B Temp:    +43°C  (high =   +60°C, hyst =   +55°C)   sensor = thermistor
CPU Temp:  +39.5°C  (high =   +80°C, hyst =   +75°C)   sensor = diode
??? Temp:  +46.0°C  (high =   +60°C, hyst =   +55°C)   sensor = thermistor
alarms:   Chassis intrusion detection                      ALARM
beep_enable:
          Sound alarm enabled
Values from PHP -------------------------------
w83627thf-isa-0290
Adapter: ISA adapter
VCore:     +1.52 V  (min =  +1.40 V, max =  +1.60 V)              
+12V:     +12.04 V  (min = +11.49 V, max = +12.52 V)              
+3.3V:     +3.25 V  (min =  +3.20 V, max =  +3.41 V)              
+5V:       +5.07 V  (min =  +4.75 V, max =  +5.25 V)              
-12V:     -12.03 V  (min = -12.53 V, max = -11.54 V)              
V5SB:      +4.92 V  (min =  +4.76 V, max =  +5.24 V)              
VBat:      +2.62 V  (min =  +2.40 V, max =  +3.60 V)              
M/B Temp:    +43°C  (high =   +60°C, hyst =   +55°C)   sensor = thermistor           
CPU Temp:  +39.5°C  (high =   +80°C, hyst =   +75°C)   sensor = diode           
??? Temp:  +46.0°C  (high =   +60°C, hyst =   +55°C)   sensor = thermistor           
alarms:   Chassis intrusion detection                      ALARM
beep_enable:
          Sound alarm enabled
Comment 1 Mickaël Bucas 2009-12-14 09:56:48 UTC
Created attachment 212979 [details]
Output of emerge --info
Comment 2 Mickaël Bucas 2009-12-14 09:58:00 UTC
Created attachment 212980 [details]
Output of lscpi -vv
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2009-12-29 13:51:28 UTC
What if you run sensors from within a cli python script?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2009-12-29 13:52:11 UTC
And how long does the script take to execute? Is there a notable difference between PHP and Python?
Comment 5 Mickaël Bucas 2010-01-26 22:34:29 UTC
When I run the following Python script, "sensors" shows the same temperature as if it were run from command line :
import os
os.system("sensors")

So it seems to me that the Python software I run makes CPU get warmer even for a single web page.