aristocratos / btop

A monitor of resources
Apache License 2.0
18.16k stars 579 forks source link

[REQUEST] Nvidia Jetson GPUs #891

Open manbehindthemadness opened 5 days ago

manbehindthemadness commented 5 days ago

I have noticed that the Nvidia Jetson GPUs data-stream (viewable in tegra-stats) does not play ball with btop as of latest-main commit. I have tried the general package available in apt (this usually doesn't like my GPUs), I then switched to a local compile of the latest code with GPU enabled. The GPU interface elements appear; however, they fail to populate with any data.

If this is a procedural mistake on my part, I can find no evidence, but will gladly accept guidance. alternatively: If support for these GPUs has not yet been added, I humbly submit this enhancement-request.

Cheers,

imwints commented 4 days ago

Can you post the last log and the output of btop --version?

Do you have good output with nvidia-smi?

manbehindthemadness commented 4 days ago

Can you post the last log and the output of btop --version? btop version: 1.3.2+e4f69cd Compiled with: c++ (11.4.0) Configured with: cmake -DBTOP_STATIC=OFF -DBTOP_USE_MOLD=OFF -DBTOP_FORTIFY=ON -DBTOP_GPU=ON

Do you have good output with nvidia-smi? The Jetson systems don't use the standard nvidia-smi application to access the GPU information; however, these details are accessible via jetson-stats:

Screenshot from 2024-07-06 12-07-49

imwints commented 4 days ago

The Jetson systems don't use the standard nvidia-smi application to access the GPU information; however, these details are accessible via jetson-stats:

Ok I guess this is the problem. btop currently uses nvml, the same library used by nvidia-smi, to query Nvidia GPU stats. According to this stackoverflow thread Jetson GPU's are not supported by nvml

So support would have to be added. I don't have access to such a GPU, maybe you want to contribute the missing parts?

manbehindthemadness commented 4 days ago

Let me see, I'm abroad (hence my use of the suitcase AGX Orin) so I don't have access to my normal equipment; however, I bet we can dig out the magical elixir from here: https://github.com/rbonghi/jetson_stats