Nvidia-smi 不显示 GPU 内存使用情况和进程名称的完整路径
Nvidia-smi doesn't show GPU Memory Usage and full path for Process Names
我在 windows 10
PC 上 运行 命令 nvidia-smi
。
- 为什么它显示 GPU 内存使用为“N/A”?
- 如何访问每个活动进程名称的完整路径? (目前只显示部分路径)
除了 nvidia-smi
之外,还有其他方法可以访问此类信息吗?
C:\Users\ks>nvidia-smi
Sun Nov 29 09:04:35 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 445.87 Driver Version: 445.87 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1650 WDDM | 00000000:08:00.0 On | N/A |
| 50% 31C P8 8W / 75W | 506MiB / 4096MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU PID Type Process name GPU Memory |
| Usage |
|=============================================================================|
| 0 1164 C+G Insufficient Permissions N/A |
| 0 2140 C+G ...8bbwe\Microsoft.Notes.exe N/A |
| 0 3188 C+G C:\Windows\explorer.exe N/A |
| 0 4492 C+G ...me\Application\chrome.exe N/A |
| 0 6156 C+G ...artMenuExperienceHost.exe N/A |
| 0 7844 C+G ...y\ShellExperienceHost.exe N/A |
| 0 10156 C+G ...b3d8bbwe\WinStore.App.exe N/A |
| 0 11340 C+G ...lPanel\SystemSettings.exe N/A |
| 0 12932 C+G ...es.TextInput.InputApp.exe N/A |
+-----------------------------------------------------------------------------+
- Why does it display GPU Memory Usage as "N/A"?
正如 talonmies 回答的那样,在 WDDM 系统上,NVIDIA 驱动程序不管理 GPU 内存。 WDDM 子系统可以。
你可以通过运行一个命令nvidia-smi --help-query-compute-apps
来检查这个,然后它会在"used_gpu_memory" or "used_memory"
下显示原因。
我的说 Not available on Windows when running in WDDM mode because Windows KMD manages all the memory not NVIDIA driver.
- How do I access full path for each Process names that is active? (right now it only shows a part of the path)
您可以通过 运行 命令 nvidia-smi --query-compute-apps=pid,process_name,used_memory --format=csv
访问完整路径。
我在 windows 10
PC 上 运行 命令 nvidia-smi
。
- 为什么它显示 GPU 内存使用为“N/A”?
- 如何访问每个活动进程名称的完整路径? (目前只显示部分路径)
除了 nvidia-smi
之外,还有其他方法可以访问此类信息吗?
C:\Users\ks>nvidia-smi
Sun Nov 29 09:04:35 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 445.87 Driver Version: 445.87 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1650 WDDM | 00000000:08:00.0 On | N/A |
| 50% 31C P8 8W / 75W | 506MiB / 4096MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU PID Type Process name GPU Memory |
| Usage |
|=============================================================================|
| 0 1164 C+G Insufficient Permissions N/A |
| 0 2140 C+G ...8bbwe\Microsoft.Notes.exe N/A |
| 0 3188 C+G C:\Windows\explorer.exe N/A |
| 0 4492 C+G ...me\Application\chrome.exe N/A |
| 0 6156 C+G ...artMenuExperienceHost.exe N/A |
| 0 7844 C+G ...y\ShellExperienceHost.exe N/A |
| 0 10156 C+G ...b3d8bbwe\WinStore.App.exe N/A |
| 0 11340 C+G ...lPanel\SystemSettings.exe N/A |
| 0 12932 C+G ...es.TextInput.InputApp.exe N/A |
+-----------------------------------------------------------------------------+
- Why does it display GPU Memory Usage as "N/A"?
正如 talonmies 回答的那样,在 WDDM 系统上,NVIDIA 驱动程序不管理 GPU 内存。 WDDM 子系统可以。
你可以通过运行一个命令nvidia-smi --help-query-compute-apps
来检查这个,然后它会在"used_gpu_memory" or "used_memory"
下显示原因。
我的说 Not available on Windows when running in WDDM mode because Windows KMD manages all the memory not NVIDIA driver.
- How do I access full path for each Process names that is active? (right now it only shows a part of the path)
您可以通过 运行 命令 nvidia-smi --query-compute-apps=pid,process_name,used_memory --format=csv
访问完整路径。