-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REQUEST] Add GPU usage #26
Comments
I am using this command now: https://github.com/wookayin/gpustat |
I looked in to it when I started writing bashtop but ran in to a lot of problems with different tools for different gpus, permissions and overall cpu usage. |
Did you look into gpustat? It should give you the necessary information for all relevant nvidia gpus.
Returned information for each gpu (https://github.com/wookayin/gpustat/blob/5c8898e43326e5c7b1450503e6dd9dc3ea4967d0/gpustat/core.py#L481):
|
amdgpu-utils is a similar library for amd gpus but needs quite a lot of setup:
|
Why not support Nvidia GPUs first, and worry about AMD GPUs later, it should be easier considering the Nvidia tool already works with minimal configuration from the user @aristocratos |
Looks like polling with python modules is the easiest way to go, regardless of nvidia/amd. It would still be up to the user to correctly set up any dependent tool. It will however be a while before I get to it. A lot of stuff on the TODO list and mostly just weekends to work on it. |
nvidia-smi was included with the nvidia driver on my system, so that's one less dependency if the nvidia driver is already installed. The temperature can be obtained from a one-liner in bash. $ nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits $ pacman -Qo $(which nvidia-smi) From what I read, the amd gpu temp can be obtained from lm_sensors using the sensors command. |
Currently to monitor my GPU Temps, Utilization and other stats I use I think |
I'm leaning towards @Baschdl recommendation with gpustat python module. I'm currently working on a new version running python on a secondary thread which would pull ALL system information in to the bash script through pipes and never have to start any forks. Will hopefully be a big reduction in cpu usage overall. |
For intel gpus there is |
@bodograumann But will answer this for the current effort of adding gpu stats for bpytop (and the remote possibility of backporting it to bashtop): I don't know how useful
|
Is your feature request related to a problem? Please describe.
GPU Memory and Core is currently not displayed
Describe the solution you'd like
Something that either shows the recent history of GPU usage, or current GPU usage
Describe alternatives you've considered
Currently using https://github.com/Syllo/nvtop, the same could be looked at being integrated
Additional context
Awesome project!
The text was updated successfully, but these errors were encountered: