htop-dev / htop

htop - an interactive process viewer
https://htop.dev/
GNU General Public License v2.0
6.52k stars 440 forks source link

Temprature of (non-continuous-index) CPU core showing N/A #1564

Open KumaTea opened 5 hours ago

KumaTea commented 5 hours ago

Recently I set up a server with an Intel E5-2680 v4 CPU which has 14 cores and 2 threads per core.

I have installed htop and lm-sensors. htop shows:

    1[|      0.5% 30°C]   5[       0.0% 28°C]   9[|      0.5% 28°C]  13[       0.0% 28°C]  15[       0.0% 30°C]  19[|      0.5% 28°C]  23[       0.0% 28°C]  27[       0.0% 28°C]
    2[||     1.0% 28°C]   6[||     1.0% 30°C]  10[       0.0% 29°C]  14[       0.0% 29°C]  16[       0.0% 28°C]  20[||     1.0% 30°C]  24[|      0.5% 29°C]  28[       0.0% 29°C]
    3[|||    2.5% 29°C]   7[       0.0% 28°C]  11[       0.0% 30°C]                        17[       0.0% 29°C]  21[       0.0% 28°C]  25[|      0.5% 30°C]
    4[|      0.5% 29°C]   8[        0.0% N/A]  12[|      0.5% 29°C]                        18[|      0.5% 29°C]  22[||      1.0% N/A]  26[|      0.5% 29°C]
  Mem[||||||||||||                                                           2.59G/31.2G] Date & Time: 2024-11-17 14:00:09
  Swp[||                                                                     6.75M/43.0G] Uptime: 02:54:41
  Disk IO: 0.4% read: 0KiB/s write: 5KiB/s                                                Load average: 0.34 0.49 0.35                      

Note that core 8 (index 8 and 22) shows temprature of N/A.

Here's the output of lm-sensors:

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +34.0°C  (high = +90.0°C, crit = +100.0°C)
Core 0:        +29.0°C  (high = +90.0°C, crit = +100.0°C)
Core 1:        +28.0°C  (high = +90.0°C, crit = +100.0°C)
Core 2:        +29.0°C  (high = +90.0°C, crit = +100.0°C)
Core 3:        +28.0°C  (high = +90.0°C, crit = +100.0°C)
Core 4:        +28.0°C  (high = +90.0°C, crit = +100.0°C)
Core 5:        +30.0°C  (high = +90.0°C, crit = +100.0°C)
Core 6:        +28.0°C  (high = +90.0°C, crit = +100.0°C)
Core 8:        +28.0°C  (high = +90.0°C, crit = +100.0°C)
Core 9:        +29.0°C  (high = +90.0°C, crit = +100.0°C)
Core 10:       +29.0°C  (high = +90.0°C, crit = +100.0°C)
Core 11:       +30.0°C  (high = +90.0°C, crit = +100.0°C)
Core 12:       +28.0°C  (high = +90.0°C, crit = +100.0°C)
Core 13:       +29.0°C  (high = +90.0°C, crit = +100.0°C)
Core 14:       +29.0°C  (high = +90.0°C, crit = +100.0°C)

Core 7 (or 8 indexed from 1) is missing. It may indicate that the CPU had likely disabled core 8 and 16 from a 16 core one.


Would this be considered as a bug report or feature request? Since every core does have its temprature data. Or this won't be fixed because this situation is rare?

Thank you!

fasterit commented 2 hours ago

Is it not doing the right thing? Because your paste looks as if you index CPUs from 1 in htop. You can change that in F2 (Setup) -> Display options -> Count CPUs from 1 instead of 0.