NVIDIA / go-nvml

Go Bindings for the NVIDIA Management Library (NVML)
Apache License 2.0
290 stars 62 forks source link

how to get pid's real mem util #127

Open berkaroad opened 2 months ago

berkaroad commented 2 months ago

I run a AI task on GPU0, that only one pid on that.

device's mem utilization, I use DCGM_FI_DEV_FB_USED * 100 / DCGM_FI_DEV_FB_TOTAL.

I use DCGM_PID_MEM_UTIL to get pid's mem utilization, but it is quite different with DCGM_FI_DEV_FB_USED * 100 / DCGM_FI_DEV_FB_TOTAL.

How can I get the real mem utilization for pid? Looking forward to your reply, thanks!

显存利用率