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

Add GPU metrics to Pod metrics for Job metadata #91

Open
Fizzbb opened this issue Feb 2, 2022 · 0 comments
Open

Add GPU metrics to Pod metrics for Job metadata #91

Fizzbb opened this issue Feb 2, 2022 · 0 comments
Assignees

Comments

@Fizzbb
Copy link
Collaborator

Fizzbb commented Feb 2, 2022

Previous saved job metadata only includes aggregated CPU related utilization. Add GPU utilization and GPU memory usage in the data.
Procedures are like following
From each profiler daemon,

  1. query GPU utilization through nvml, nvmlDeviceGetUtilizationRates, find the one with use.gpu >0
  2. query prometheus metrics DCGM_FI_DEV_FB_USED and DCGM_FI_DEV_GPU_UTIL, by gpu id, and instance
  3. for those gpu util >0, get the process id on those gpus by nvmlDeviceGetComputeRunningProcesses
  4. find the pod name of the given process with "nsenter --target --uts hostname"
  5. save to a dict of each pods and its corresponding gpu util and mem used since pod start
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

2 participants