Nvidia-smi
From wikinotes
nvidia-smi is a commandline tool that shows information about your GPU
like temperature, vram consumption, etc.
Usage
watch -n5 nvidia-smiSun May 9 09:52:39 2021 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 465.27 Driver Version: 465.27 CUDA Version: 11.3 | |-------------------------------+----------------------+----------------------+ | 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 NVIDIA GeForce ... Off | 00000000:01:00.0 On | N/A | | 30% 36C P0 46W / 215W | 413MiB / 7979MiB | 5% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 532 G /usr/lib/Xorg 252MiB | | 0 N/A N/A 9147 G /usr/bin/python3 84MiB | +-----------------------------------------------------------------------------+