amanusk / s-tui

Terminal-based CPU stress and monitoring utility
https://amanusk.github.io/s-tui/
GNU General Public License v2.0
4.05k stars 139 forks source link

Temperature graph wrongly changes color #121

Open parkerlreed opened 5 years ago

parkerlreed commented 5 years ago

Step 1: Describe your environment

Step 2: Describe the problem:

Observed Results:

image

Debug Results, output of s-tui -d created in a file _s-tui.log:

2019-05-20 16:20:28,320 [_load_config()] [DEBUG]  User refresh rate: 2.0
2019-05-20 16:20:28,320 [_load_config()] [DEBUG]  UTF8 selected as False
2019-05-20 16:20:28,320 [_load_config()] [DEBUG]  No user config for temp threshold
2019-05-20 16:20:28,321 [__init__()] [DEBUG]  Temp sensor name Acpitz,0
2019-05-20 16:20:28,321 [__init__()] [DEBUG]  Temp sensor name Acpitz,1
2019-05-20 16:20:28,321 [__init__()] [DEBUG]  Temp sensor name Amdgpu,0
2019-05-20 16:20:28,321 [__init__()] [DEBUG]  Temp sensor name PackageId0
2019-05-20 16:20:28,321 [__init__()] [DEBUG]  Temp sensor name Core0,Pkg0
2019-05-20 16:20:28,321 [__init__()] [DEBUG]  Temp sensor name Core1,Pkg0
2019-05-20 16:20:28,321 [__init__()] [DEBUG]  Temp sensor name Pch_Skylake,0
2019-05-20 16:20:28,387 [__init__()] [DEBUG]  Fan sensor name amdgpu,0
2019-05-20 16:20:28,387 [__init__()] [INFO ]  num cpus 4
2019-05-20 16:20:28,398 [on_unicode_checkbox()] [DEBUG]  unicode State is False
2019-05-20 16:20:28,400 [main_window()] [DEBUG]  Pile index: 18
2019-05-20 16:20:28,401 [eval_hooks()] [DEBUG]  Evaluating hooks
2019-05-20 16:20:28,401 [eval_hooks()] [DEBUG]  Hook triggered
2019-05-20 16:20:28,402 [update()] [INFO ]  Core id util 0.0
2019-05-20 16:20:28,402 [update()] [INFO ]  Core id util 27.3
2019-05-20 16:20:28,402 [update()] [INFO ]  Core id util 9.1
2019-05-20 16:20:28,402 [update()] [INFO ]  Core id util 0.0
2019-05-20 16:20:28,402 [update()] [INFO ]  Utilization recorded [9.3, 0.0, 27.3, 9.1, 0.0]
2019-05-20 16:20:28,402 [update()] [INFO ]  Reading [27.8, 29.8, 38.0, 82.0, 55.0, 82.0, 50.0]
2019-05-20 16:20:28,402 [update()] [INFO ]  Reading [3499.994, 3499.951, 3499.999, 3499.997, 3500.029]
2019-05-20 16:20:28,403 [update()] [INFO ]  Reading [9.3, 0.0, 27.3, 9.1, 0.0]
2019-05-20 16:20:30,406 [eval_hooks()] [DEBUG]  Evaluating hooks
2019-05-20 16:20:30,473 [update()] [INFO ]  Core id util 1.4
2019-05-20 16:20:30,473 [update()] [INFO ]  Core id util 1.0
2019-05-20 16:20:30,473 [update()] [INFO ]  Core id util 1.4
2019-05-20 16:20:30,473 [update()] [INFO ]  Core id util 0.5
2019-05-20 16:20:30,473 [update()] [INFO ]  Utilization recorded [1.2, 1.4, 1.0, 1.4, 0.5]
2019-05-20 16:20:30,473 [update()] [INFO ]  Reading [27.8, 29.8, 37.0, 54.0, 53.0, 54.0, 50.0]
2019-05-20 16:20:30,474 [update()] [INFO ]  Reading [3499.0832499999997, 3499.91, 3490.274, 3500.881, 3499.425]
2019-05-20 16:20:30,474 [update()] [INFO ]  Reading [1.2, 1.4, 1.0, 1.4, 0.5]
2019-05-20 16:20:32,477 [eval_hooks()] [DEBUG]  Evaluating hooks
2019-05-20 16:20:32,546 [update()] [INFO ]  Core id util 1.4
2019-05-20 16:20:32,546 [update()] [INFO ]  Core id util 0.0
2019-05-20 16:20:32,546 [update()] [INFO ]  Core id util 0.0
2019-05-20 16:20:32,546 [update()] [INFO ]  Core id util 1.4
2019-05-20 16:20:32,546 [update()] [INFO ]  Utilization recorded [0.6, 1.4, 0.0, 0.0, 1.4]
2019-05-20 16:20:32,547 [update()] [INFO ]  Reading [27.8, 29.8, 37.0, 54.0, 53.0, 54.0, 50.0]
2019-05-20 16:20:32,547 [update()] [INFO ]  Reading [3500.4142500000003, 3500.023, 3516.522, 3499.749, 3501.029]
2019-05-20 16:20:32,547 [update()] [INFO ]  Reading [0.6, 1.4, 0.0, 0.0, 1.4]
2019-05-20 16:20:34,551 [eval_hooks()] [DEBUG]  Evaluating hooks
2019-05-20 16:20:34,616 [update()] [INFO ]  Core id util 1.5
2019-05-20 16:20:34,616 [update()] [INFO ]  Core id util 0.0
2019-05-20 16:20:34,616 [update()] [INFO ]  Core id util 1.0
2019-05-20 16:20:34,616 [update()] [INFO ]  Core id util 1.0
2019-05-20 16:20:34,616 [update()] [INFO ]  Utilization recorded [0.7, 1.5, 0.0, 1.0, 1.0]
2019-05-20 16:20:34,616 [update()] [INFO ]  Reading [27.8, 29.8, 37.0, 54.0, 52.0, 54.0, 49.5]
2019-05-20 16:20:34,617 [update()] [INFO ]  Reading [3499.6352500000003, 3500.074, 3499.994, 3501.31, 3500.171]
2019-05-20 16:20:34,617 [update()] [INFO ]  Reading [0.7, 1.5, 0.0, 1.0, 1.0]
2019-05-20 16:20:36,501 [kill_child_processes()] [DEBUG]  Killing stress process
2019-05-20 16:20:36,501 [kill_child_processes()] [DEBUG]  No such process
2019-05-20 16:20:36,501 [kill_child_processes()] [DEBUG]  Could not kill process
2019-05-20 16:20:36,619 [eval_hooks()] [DEBUG]  Evaluating hooks
2019-05-20 16:20:36,619 [eval_hooks()] [DEBUG]  Hook triggered
2019-05-20 16:20:36,686 [update()] [INFO ]  Core id util 10.1
2019-05-20 16:20:36,686 [update()] [INFO ]  Core id util 9.2
2019-05-20 16:20:36,686 [update()] [INFO ]  Core id util 8.7
2019-05-20 16:20:36,686 [update()] [INFO ]  Core id util 8.2
2019-05-20 16:20:36,687 [update()] [INFO ]  Utilization recorded [9.3, 10.1, 9.2, 8.7, 8.2]
2019-05-20 16:20:36,687 [update()] [INFO ]  Reading [27.8, 29.8, 38.0, 86.0, 86.0, 84.0, 50.0]
2019-05-20 16:20:36,688 [update()] [INFO ]  Reading [3500.00075, 3499.999, 3500.0, 3499.998, 3500.001]
2019-05-20 16:20:36,688 [update()] [INFO ]  Reading [9.3, 10.1, 9.2, 8.7, 8.2]
2019-05-20 16:20:38,691 [eval_hooks()] [DEBUG]  Evaluating hooks
2019-05-20 16:20:38,691 [eval_hooks()] [DEBUG]  Hook triggered
2019-05-20 16:20:38,756 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:38,756 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:38,756 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:38,756 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:38,757 [update()] [INFO ]  Utilization recorded [100.0, 100.0, 100.0, 100.0, 100.0]
2019-05-20 16:20:38,757 [update()] [INFO ]  Reading [27.8, 29.8, 37.0, 96.0, 96.0, 95.0, 52.5]
2019-05-20 16:20:38,757 [update()] [INFO ]  Reading [3439.6009999999997, 3428.424, 3436.491, 3455.135, 3454.944]
2019-05-20 16:20:38,758 [update()] [INFO ]  Reading [100.0, 100.0, 100.0, 100.0, 100.0]
2019-05-20 16:20:40,763 [eval_hooks()] [DEBUG]  Evaluating hooks
2019-05-20 16:20:40,763 [eval_hooks()] [DEBUG]  Hook triggered
2019-05-20 16:20:40,830 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:40,830 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:40,830 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:40,830 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:40,830 [update()] [INFO ]  Utilization recorded [100.0, 100.0, 100.0, 100.0, 100.0]
2019-05-20 16:20:40,830 [update()] [INFO ]  Reading [27.8, 29.8, 37.0, 97.0, 97.0, 95.0, 54.0]
2019-05-20 16:20:40,831 [update()] [INFO ]  Reading [3399.8452500000003, 3392.764, 3396.67, 3393.909, 3393.841]
2019-05-20 16:20:40,831 [update()] [INFO ]  Reading [100.0, 100.0, 100.0, 100.0, 100.0]
2019-05-20 16:20:42,834 [eval_hooks()] [DEBUG]  Evaluating hooks
2019-05-20 16:20:42,834 [eval_hooks()] [DEBUG]  Hook triggered
2019-05-20 16:20:42,900 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:42,900 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:42,900 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:42,900 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:42,900 [update()] [INFO ]  Utilization recorded [100.0, 100.0, 100.0, 100.0, 100.0]
2019-05-20 16:20:42,900 [update()] [INFO ]  Reading [27.8, 29.8, 36.0, 97.0, 96.0, 95.0, 56.0]
2019-05-20 16:20:42,901 [update()] [INFO ]  Reading [3344.043, 3349.591, 3350.429, 3330.651, 3330.707]
2019-05-20 16:20:42,901 [update()] [INFO ]  Reading [100.0, 100.0, 100.0, 100.0, 100.0]
2019-05-20 16:20:44,904 [eval_hooks()] [DEBUG]  Evaluating hooks
2019-05-20 16:20:44,904 [eval_hooks()] [DEBUG]  Hook triggered
2019-05-20 16:20:44,970 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:44,970 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:44,970 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:44,970 [update()] [INFO ]  Core id util 100.0
2019-05-20 16:20:44,970 [update()] [INFO ]  Utilization recorded [100.0, 100.0, 100.0, 100.0, 100.0]
2019-05-20 16:20:44,970 [update()] [INFO ]  Reading [27.8, 29.8, 37.0, 97.0, 97.0, 96.0, 57.0]
2019-05-20 16:20:44,971 [update()] [INFO ]  Reading [3298.8315, 3294.32, 3297.209, 3288.652, 3288.511]
2019-05-20 16:20:44,971 [update()] [INFO ]  Reading [100.0, 100.0, 100.0, 100.0, 100.0]
2019-05-20 16:20:46,045 [kill_child_processes()] [DEBUG]  Killing stress process
2019-05-20 16:20:46,052 [kill_child_processes()] [DEBUG]  Killing psutil.Process(pid=10033, name='stress', started='16:20:36')
2019-05-20 16:20:46,052 [kill_child_processes()] [DEBUG]  Killing psutil.Process(pid=10032, name='stress', started='16:20:36')
2019-05-20 16:20:46,052 [kill_child_processes()] [DEBUG]  Killing psutil.Process(pid=10034, name='stress', started='16:20:36')
2019-05-20 16:20:46,052 [kill_child_processes()] [DEBUG]  Killing psutil.Process(pid=10035, name='stress', started='16:20:36')
2019-05-20 16:20:46,974 [eval_hooks()] [DEBUG]  Evaluating hooks
2019-05-20 16:20:47,039 [update()] [INFO ]  Core id util 52.7
2019-05-20 16:20:47,040 [update()] [INFO ]  Core id util 52.4
2019-05-20 16:20:47,040 [update()] [INFO ]  Core id util 52.7
2019-05-20 16:20:47,040 [update()] [INFO ]  Core id util 52.7
2019-05-20 16:20:47,040 [update()] [INFO ]  Utilization recorded [52.5, 52.7, 52.4, 52.7, 52.7]
2019-05-20 16:20:47,040 [update()] [INFO ]  Reading [27.8, 29.8, 37.0, 63.0, 61.0, 61.0, 57.5]
2019-05-20 16:20:47,040 [update()] [INFO ]  Reading [3499.9587500000002, 3500.069, 3498.655, 3504.187, 3500.287]
2019-05-20 16:20:47,041 [update()] [INFO ]  Reading [52.5, 52.7, 52.4, 52.7, 52.7]
2019-05-20 16:20:47,449 [unhandled_input()] [DEBUG]  Caught q
2019-05-20 16:20:47,449 [kill_child_processes()] [DEBUG]  Killing stress process
2019-05-20 16:20:47,449 [kill_child_processes()] [DEBUG]  No such process
2019-05-20 16:20:47,450 [kill_child_processes()] [DEBUG]  Could not kill process

Step 3: Reproduce the problem:

Steps to reproduce:

  1. Run s-tui
  2. Have both CPU and another temperature sensor on the graph
  3. Run stress test

EDIT: I just realized. Is the red supposed to just indicate stress testing is active? I assumed it was based on the temperature.

What alarmed me was just seeing the GPU temp in red thinking something was wrong. If red for all stress testing is intended, I can close this out.

amanusk commented 5 years ago

Thanks for the detailed issue

EDIT: I just realized. Is the red supposed to just indicate stress testing is active? I assumed it was based on the temperature. What alarmed me was just seeing the GPU temp in red thinking something was wrong. If red for all stress testing is intended, I can close this out.

You were right the first time, the red color alerts of a sensor exceeding some threshold. At the moment, all temperature graphs change color if one of temperature sensors exceeds the threshold. I can see why this might be problematic.