Public bug reported:

When running landscape-sysinfo the temperature that is reported is often
exaggerated compared to other measurements taken by e.g. running
'sensors'. After some testing it seems that the temperatures that are
reported are correctly read from the thermal_zone information; however,
the act of running the landscape-sysinfo script inflates the measurement
at the time it is taken. Likely this is because of an increased CPU load
just prior to the measurement.

I imagine the impact of this issue will depend widely on the specific
hardware that is used and the types of thermal zones reported.
Nonetheless, I found that the impact of the issue can be greatly reduced
by including a 50ms 'sleep' in the ThermalZone class just before reading
the temperature value. For example, adding a "time.sleep(0.05)" before
the line "self.temperature_value = int(line.strip()) / 1000.0" in
/usr/lib/python3/dist-packages/landscape/lib/sysstats.py drops the
reported temperature of an idle Intel(R) Xeon(R) CPU E3-1245 from 70C to
a much more reasonable 48C, which is much closer to the temperature
reported by e.g. 'sensors' (typically within 1 degree on 3 different
platforms tested).

Adding a small wait time before the temperature reading will increase
the run time of the script, but since the wait interval is so short it
isn't noticeable. The only exception might be systems with a very large
number of thermal zones (e.g. 10 zones would increase the total delay to
0.5 sec). Perhaps there are other more elegant ways to ensure that the
temperature measurement is more accurate, such as changing the run order
of the different sysinfo components to ensure the lowest CPU usage at
the time temperatures are taken. Hopefully this can be integrated in a
future release to have more realistic temperature reporting.

** Affects: landscape-client (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1945219

Title:
  landscape-sysinfo reports exaggerated temperatures

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1945219/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to