- 1 year ago
How to check amount of memory pinning used by cuda and driver in Windows10
To check the amount of memory pinning used by CUDA and the driver in Windows 10, you can use the NVIDIA System Management Interface (nvidia-smi) tool. Here are the steps:
Open a command prompt window.
Navigate to the directory where the nvidia-smi tool is located. The default location is
C:\Program Files\NVIDIA Corporation\NVSMI
.Run the following command to display the GPU memory usage:
cssnvidia-smi.exe -q -d MEMORY
This command will display detailed information about the GPU memory usage, including the amount of memory that is pinned by CUDA and the driver.
Look for the "Pageable Memory" and "Pinned Memory" sections of the output. The "Pageable Memory" section shows the amount of pageable memory that is currently allocated by the GPU, while the "Pinned Memory" section shows the amount of pinned memory that is currently allocated by the GPU.
Here's an example output:
yaml...
FB Memory Usage
Total : 6144 MiB
Used : 512 MiB
Free : 5632 MiB
BAR1 Memory Usage
Total : 256 MiB
Used : 6 MiB
Free : 250 MiB
Pageable Memory
Total : 3627 MiB
Used : 174 MiB
Free : 3453 MiB
Pinned Memory
Total : 832 MiB
Used : 43 MiB
Free : 789 MiB
...
In this example, the GPU has 832 MiB of pinned memory allocated, and 43 MiB is currently in use.
By using the nvidia-smi tool, you can easily check the amount of memory pinning used by CUDA and the driver in Windows 10.