|
|
The NVIDIA System Management Interface ([`nvidia-smi`](https://developer.nvidia.com/nvidia-system-management-interface)) is a command line utility, based on top of the NVIDIA Management Library (NVML), intended to aid in the management and monitoring of NVIDIA GPU devices.
|
|
|
|
|
|
This utility allows administrators to query GPU device state and with the appropriate privileges, permits administrators to modify GPU device state. It is targeted at the TeslaTM, GRIDTM, QuadroTM and Titan X product, though limited support is also available on other NVIDIA GPUs.
|
|
|
|
|
|
NVIDIA-smi ships with NVIDIA GPU display drivers on Linux. Nvidia-smi can report query information as XML or human readable plain text to either standard output or a file. For more details, please refer to the nvidia-smi documentation.
|
|
|
|
|
|
## Example Output
|
|
|
|
|
|
```
|
|
|
# nvidia-smi
|
|
|
+-----------------------------------------------------------------------------+
|
|
|
| NVIDIA-SMI 450.51.06 Driver Version: 450.51.06 CUDA Version: 11.0 |
|
|
|
|-------------------------------+----------------------+----------------------+
|
|
|
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
|
|
|
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|
|
|
| | | MIG M. |
|
|
|
|===============================+======================+======================|
|
|
|
| 0 Tesla V100-SXM2... Off | 00000000:18:00.0 Off | 0 |
|
|
|
| N/A 41C P0 57W / 300W | 0MiB / 32510MiB | 0% Default |
|
|
|
| | | N/A |
|
|
|
+-------------------------------+----------------------+----------------------+
|
|
|
| 1 Tesla V100-SXM2... Off | 00000000:3B:00.0 Off | 0 |
|
|
|
| N/A 37C P0 53W / 300W | 0MiB / 32510MiB | 0% Default |
|
|
|
| | | N/A |
|
|
|
+-------------------------------+----------------------+----------------------+
|
|
|
| 2 Tesla V100-SXM2... Off | 00000000:86:00.0 Off | 0 |
|
|
|
| N/A 38C P0 57W / 300W | 0MiB / 32510MiB | 0% Default |
|
|
|
| | | N/A |
|
|
|
+-------------------------------+----------------------+----------------------+
|
|
|
| 3 Tesla V100-SXM2... Off | 00000000:AF:00.0 Off | 0 |
|
|
|
| N/A 42C P0 57W / 300W | 0MiB / 32510MiB | 0% Default |
|
|
|
| | | N/A |
|
|
|
+-------------------------------+----------------------+----------------------+
|
|
|
|
|
|
+-----------------------------------------------------------------------------+
|
|
|
| Processes: |
|
|
|
| GPU GI CI PID Type Process name GPU Memory |
|
|
|
| ID ID Usage |
|
|
|
|=============================================================================|
|
|
|
| No running processes found |
|
|
|
+-----------------------------------------------------------------------------+
|
|
|
```
|
|
|
|
|
|
## Useful commands
|
|
|
|
|
|
```
|
|
|
# nvidia-smi -L
|
|
|
GPU 0: Tesla V100-SXM2-32GB (UUID: GPU-5a80af23-787c-cbcb-92de-c80574883c5d)
|
|
|
GPU 1: Tesla V100-SXM2-32GB (UUID: GPU-233f07d9-5e4c-9309-bf20-3ae74f0495b4)
|
|
|
GPU 2: Tesla V100-SXM2-32GB (UUID: GPU-a1a1cbc1-8747-d8cd-9028-3e2db40deb04)
|
|
|
GPU 3: Tesla V100-SXM2-32GB (UUID: GPU-8d5f775d-70d9-62b2-b46c-97d30eea732f)
|
|
|
``` |
|
|
\ No newline at end of file |