Webmin dashboards enhancements

SYSTEM INFORMATION
OS type and version Debian 13
Webmin version 2.660

Hello,

I think would be useful to display following additional metrics especially in terminal servers or transcoding servers.

in the top, system informations:
1. add a circle for each GPU installed in the system plotting current GPU load percentage
2. one row CPU Fan speed
3. one row GPU information with device info
4. one row GPU current temperature
5. one row GPU Fan speed

and below in Stats History:
6. GPUs load percentage (one graph for each present integrated/discrete
7. GPUs VRAM usage (one graph for each present integrated/discrete

I was thinking nvtop would be the easiest tool to get those info

Thanks,
Bye

I hope this topic does not die like the last one and add statistics displays to the video card.

GPU is so inconsistent, it’s hard to support. They all have different field names, often aren’t supported by sensors, or aren’t supported without running sensors-detect (which can, in some rare circumstances, crash the system or one or more devices that it probes) and adding the specific modules you need.

And, GPU RAM usage requires vendor-specific tools.

Not saying we can’t/won’t make an attempt, but also trying to manage expectations. It’s complicated.

And, a caveat: If you’re not able to get the info you want from sensors, we won’t be able to get it either. Not every GPU provides reasonable data in sensors, AFAIK, even with the drivers loaded.

And, if there isn’t a tool that already provides VRAM data (e.g. rocm-smi for AMD devices), we’re not going to try to spelunk in the low-level drivers to figure out how to get that data.

If you want to see GPU data for a particular GPU or family of GPUs, you should share how you get the data on the command line and what its output looks like. We don’t own all the GPUs. I can only test against AMD stuff, as that’s what I have here.

Oh, actually, it looks like everyone except nvidia with their proprietary drivers does provide data via the usual Linux channels (under the /sys filesystem). So, I think it’s mainly only a PITA for nvidia if you use the proprietary drivers (the open source Nouveau drivers participate in the Linux monitoring features correctly, AFAIK).

Can y’all run this script on the servers you want to monitor and see if what it returns is correct? Note GPU fan speed is rarely available (if ever). I expect N/A for most devices, I think. But, if you can find a way to get GPU fan speed for the various GPUs, I’m all ears.

gpu-query.pl (3.7 KB)

thanks and sorry for the delay

perl gpu.pl
[NVIDIA] NVIDIA GeForce RTX 3050 Ti Laptop GPU
VRAM: 2 MB / 4096 MB
Temp: 49 °C
Fan: N/A

[Intel] card0
VRAM: N/A / N/A
Temp: N/A
Fan: N/A

[NVIDIA (Nouveau/Open)] card1
VRAM: N/A / N/A
Temp: N/A
Fan: N/A

nvtop:

 Device 0 [Alder Lake-S GT1 (UHD Graphics 770)]   Integrated GPU RX: N/A TX: N/A
 GPU 300MHz  MEM N/A MHz TEMP N/AfC   CPU-FAN   POW N/A W
 GPU[                                        0%] MEM[                              N/A/30.596Gi]

 Device 1 [NVIDIA GeForce RTX 3050 Ti Laptop GPU] PCIe GEN 1@ 8x RX: 50.00 KiB/s TX: 0.000 KiB/s
 GPU 210MHz  MEM 405MHz  TEMP  48fC   FAN N/A   POW   3 /  60 W
 GPU[                                        0%] MEM[||                         0.197Gi/4.000Gi]
xGPU0 %                                                                  x 100xGPU1 %                                                                  x
   xGPU0 mem%                                                               x    xGPU1 mem%
 PID       USER DEV     TYPE  GPU        GPU MEM    CPU  HOST MEM Command
      1       root   0  Graphic   0%     11MiB   0%     0%     17MiB /sbin/init
   2556       root   0  Graphic   0%     11MiB   0%     0%      8MiB /usr/lib/systemd/systemd-logind
   2915       root   0  Graphic   0%     11MiB   0%     2%     28MiB /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/120/gdm/Xauthority -nolisten tcp -ba
   3292 Debian-gdm   0  Graphic   0%      5MiB   0%     2%     78MiB /usr/bin/gnome-shell
   3335 Debian-gdm   0  Graphic   0%      3MiB   0%     0%     27MiB /usr/libexec/mutter-x11-frames
   3387 Debian-gdm   0  Graphic   0%      3MiB   0%     0%     28MiB /usr/libexec/xdg-desktop-portal-gnome