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

GPU used by a user #14

Open
scatenag opened this issue May 6, 2020 · 4 comments
Open

GPU used by a user #14

scatenag opened this issue May 6, 2020 · 4 comments

Comments

@scatenag
Copy link

scatenag commented May 6, 2020

I rephrase this.

It would be nice to have 'per user' GPU monitoring.

Something similar to what we can get with
users_cpu_user_percentage_average
image
I would like to have
users_gpu_user_percentage_average.

I have seen something similar in gpustat.
image

Could it be possible to get some useful info?

If I'm not wrong both (this and gpustat) use the same library pynvml...

I asked the same here...

--it was ---

Would it be possible to create an alarm that triggers
when a user uses more than one GPU?

That is: if on a GPU there are running processes of more than a user?

Thanks

@scatenag scatenag changed the title Alert for number of GPU used by a user (?) GPU used by a user Jun 1, 2020
@wookayin
Copy link

One can add a chart entry for GPU memory utilization per GPU, which consists of many lines (one per user). This should be straightforward to implement.

@scatenag
Copy link
Author

For the moment I implemented per user GPU memory utilization modifying nvidia-smi collector netdata/netdata#9372

Implementing by pynvml should be more efficient
(but, for the moment, I am not python-ninja enough to try).

Do you think it would be possible to monitor per user GPU utilization (not memory)?

@coraxx
Copy link
Owner

coraxx commented Apr 18, 2021

Correct me if I'm wrong, but the only per user metric that is extractable, is how much memory is used. I am not able to find a metric for percent GPU usage per user.

Please let me know if I am just blind ^^

@scatenag
Copy link
Author

You are right!
I haven't found any way to get percent of GPU usage per user.

With nvidia-smi plugin I use percent of GPU memory usage (as approximation of) for user GPU usage that, for user accounting, is still better than no user info ..
image

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

No branches or pull requests

3 participants