Warm tip: This article is reproduced from serverfault.com, please click

windows 10-Nvidia-smi不显示GPU内存使用情况和进程名称的完整路径

(windows 10 - Nvidia-smi doesn't show GPU Memory Usage and full path for Process Names)

发布于 2020-11-30 11:41:30

我在PCnvidia-smi运行了该命令windows 10

  • 为什么将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      |
+-----------------------------------------------------------------------------+
Questioner
koyamashinji
Viewed
11
koyamashinji 2020-12-12 15:33:42
  • 为什么将GPU内存使用情况显示为“ N / A”?

正如专家们回答的那样,在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.

  • 如何为活动的每个进程名称访问完整路径?(现在它仅显示路径的一部分)

你可以通过运行命令访问完整路径nvidia-smi --query-compute-apps=pid,process_name,used_memory --format=csv