Skip to content
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

Updating Stacer to integrate GPU usage for nvidia [Issue #105] #415

Open
wants to merge 6 commits into
base: native
Choose a base branch
from

Conversation

oozut
Copy link

@oozut oozut commented Sep 30, 2020

Hi, I have added support for the visualization of the GPU for nvidia card with nvidia official driver installed in response to the new feature request #105 .

  • Addition of a GPU information class to handle the GPU information extraction
  • Does not change Stacer visualization if GPU information is not available
  • Support nvidia-smi
  • Addition of the GPU Memory and Usage to the Dashboard
  • Addition of the GPU Memory and Usage to the Resource page
  • Possibility to add support for other driver
  • Support Nouveau driver
  • Support Radeon driver

Here is a current example of the dashboard tab
Dashboard

Here is a current example of the resources tab
Resources

I have added a lightweight xml reader pugixml to be able to handle the nvidia-smi output.

The next step might be to add a column to the Processes tab to indicates the GPU Memory utilisation.

@alexmyczko
Copy link
Contributor

what happens with multi gpu conputers? 2-8 gpus

@oozut
Copy link
Author

oozut commented Oct 21, 2020

It will handle all the gpu, it will add all the gpus memory to create a total memory and the same for the gpus utilisation in the dashboard. For the chart, It will handle each gpu individually and make a trace for each gpu, I have added the gpu name and serial number for easy identification.

@oozut
Copy link
Author

oozut commented Oct 21, 2020

I do not have multigpu at home so I cannot demonstrate it but the code should handle it.

@alexmyczko
Copy link
Contributor

thanks for clarification, i will be glad to test it and create screenshots for you.

@oguzhaninan is there a plan to merge? plan to create/tag new releases?

@oozut
Copy link
Author

oozut commented Oct 21, 2020

Thanks!

@alexmyczko
Copy link
Contributor

alexmyczko commented Oct 22, 2020

here's a debian package (for sid/amd64) http://sid.ethz.ch/debian/stacer/gpu/

it would show me 0 Percents / 800... and 0.0 GiB/88.2 GiB, and the disk thing only takes into acocunt /, nto all filesystems...

would it not also be great to show memory with indicator for zram enabled or not and how much and how much is used, visible with swapon also the CPU Model Core Speed seem to be not exactly right, if it's more than one cpu with multiple cores, the core number is right. the speed looks wrong for me.

@oguzhaninan
Copy link
Owner

Hi @oozut,

Thank you so much for this feature. But it doesn't look good for the Dashboard. Perhaps there should be a different page for this.

@ghost
Copy link

ghost commented Oct 25, 2021

Looks rad! :(

@alexmyczko
Copy link
Contributor

alexmyczko commented Oct 25, 2021

maybe make it a build option? or even better runtime option?

@ghost
Copy link

ghost commented Oct 26, 2021

maybe male it a build option? or even better runtime option?

Eh, I think we need an actively developed fork..

@ninjamar
Copy link

ninjamar commented May 7, 2022

Any update on this PR?

@cs-mshah
Copy link

This seems to be good. It would be great to have it merged.

@jesseibiza
Copy link

Look cool how can i get it working on Garuda "arch" ? Any input?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants