aristocratos / btop

A monitor of resources
Apache License 2.0
21.38k stars 656 forks source link

[BUG] #681

Open endepointe opened 12 months ago

endepointe commented 12 months ago

Describe the bug

GPU usage information seems to be missing. Toggle GPU box not working. After cloning the ROCm SMI library into lib/rocm_smi_lib (from README(, updating btop from version 1.2 to 1.2.13, the gpu usage information is not displaying. Im curious now if my gpu is simply not being detected by btop.

Expected behavior

  1. run btop
  2. see gpu usage info in cpu box
  3. press 5 to toggle gpu box
  4. see gpu information

Screenshots image image image image

Info (please complete the following information):

Additional context

contents of ~/.config/btop/btop.log

2023/12/09 (10:01:46) | ===> btop++ v.1.2.13 2023/12/09 (10:01:46) | WARNING: Failed to get disk/partition stats for mount "swap" with statvfs error code: 2. Ignoring...

Botoni commented 11 months ago

Same thing happens to me with an nvidia card (3070). Fedora 39 kernel 6.6.4 self compiled. Only reference to GPU are in options, but no trace of it in the main ui, nothing happens when pressing '5'

aristocratos commented 11 months ago

@endepointe @Botoni Make sure you are compiling from git main. btop version should be 1.3.0 When compiling check that GPU_SUPPORT says true.

Then run btop --debug and post the output of the logfile.

Botoni commented 11 months ago

Thank you @aristocratos I've found the problem looking myself at the log, libnvidia-ml.so was named libnvidia-ml.so.1 in my system, so it wasn't found. I created another symlink named libnvidia-ml.so and everything works now.

arvvnd commented 5 months ago

@Botoni Hey, may I ask how to locate the log file? I'm not able to find it.

alotofentropy commented 4 months ago

Thank you @aristocratos I've found the problem looking myself at the log, libnvidia-ml.so was named libnvidia-ml.so.1 in my system, so it wasn't found. I created another symlink named libnvidia-ml.so and everything works now.

how did you find this out? I cant get btop to show gpu usage. Not sure where to start looking for these files.

endepointe commented 3 months ago

@alotofentropy @arvvnd

Hi sorry for not keeping up with this. The log files produced by btop can be produced by running the command: btop --debug

The logs are located at $HOME/.config/btop/

arvvnd commented 3 months ago

The logs are located at $HOME/.config/btop/

Thank you, I will check them out!