cd /news/developer-tools/nvidia-smi-cheat-sheet · home topics developer-tools article
[ARTICLE · art-9890] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

nvidia-smi cheat sheet

The **nvidia-smi** (NVIDIA System Management Interface) is a command-line tool for monitoring, managing, and diagnosing NVIDIA GPU devices, providing data on performance, temperature, utilization, power, and memory. It supports real-time monitoring with options like `-l` for periodic updates, `dmon` for device monitoring, and `--query-gpu` for exporting detailed metrics in CSV format for scripting and automation. The tool also allows administrative control, including setting power limits, locking clock speeds, enabling persistence mode, and terminating GPU processes.

read1 min views23 publishedNov 6, 2025

nvidia-smi (NVIDIA System Management Interface) is a command-line tool that provides monitoring, management, and diagnostic information for NVIDIA GPU devices. It communicates directly with the NVIDIA driver and GPU, and can:

  • Monitor GPU performance, temperature, and utilization
  • Manage power, clock speeds, and ECC
  • Control persistence mode and compute modes
  • Query detailed metrics for automation and monitoring nvidia-smi Shows a summary table with:
  • GPU index, name, and UUID
  • Driver & CUDA versions
  • GPU & memory utilization
  • Power consumption and temperature
  • Active processes using the GPU
nvidia-smi -l 5
nvidia-smi -lms 500
nvidia-smi --filename=/var/log/gpu.log -l 5

nvidia-smi dmon Example: 0 85 64 23 5 0 0 405 1110 nvidia-smi --query-gpu=index,name,uuid,temperature.gpu,utilization.gpu,memory.used,memory.total --format=csv Output: index, name, uuid, temperature.gpu, utilization.gpu [%], memory.used [MiB], memory.total [MiB] 0, NVIDIA RTX A6000, GPU-02afcc1a-…, 58, 72 %, 13456 MiB, 49152 MiB

nvidia-smi --query-gpu=memory.used,memory.total --format=csv
nvidia-smi --query-gpu=temperature.gpu,power.draw --format=csv,noheader,nounits
nvidia-smi --query-gpu=name --format=csv,noheader
nvidia-smi pmon -c 1

nvidia-smi pmon Example output: 0 3024 C 23 5 0 0 python3 Terminate a process:

sudo kill -9 <pid>
sudo nvidia-smi -pm 1
sudo nvidia-smi -pm 0
sudo nvidia-smi -pl 250
sudo nvidia-smi --lock-gpu-clocks=900,1500
sudo nvidia-smi --reset-gpu-clocks
sudo nvidia-smi --lock-memory-clocks=405,1215
sudo nvidia-smi -i 0 --gpu-reset
nvidia-smi -q -d ECC
sudo nvidia-smi -e 1

Example:

sudo nvidia-smi -c 3
nvidia-smi -q -d SUPPORTED_CLOCKS
nvidia-smi -q -d PERFORMANCE
nvidia-smi -q -d PCI
nvidia-smi -q -d FAN
nvidia-smi --query-gpu=name,utilization.gpu --format=csv,noheader
nvidia-smi --query-gpu=temperature.gpu --format=csv,nounits
nvidia-smi --query-gpu=index,uuid,temperature.gpu,power.draw --format=csv -l 10 --filename=gpu_stats.csv
  • Use
--query-gpu
with--format=csv,noheader,nounits

in scripts. - Use GPU UUIDs for consistent identification.

  • Combine with watch :watch -n 2 nvidia-smi #!/bin/bash LOGFILE="/var/log/nvidia_smi_monitor.csv" echo "timestamp,gpu_index,uuid,utilization.gpu,memory.used,memory.total,temperature.gpu,power.draw" > $LOGFILE
while true; do
nvidia-smi --query-gpu=timestamp,index,uuid,utilization.gpu,memory.used,memory.total,temperature.gpu,power.draw --format=csv,noheader >> $LOGFILE

sleep 5 done

── more in #developer-tools 4 stories · sorted by recency
── more on @nvidia 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/nvidia-smi-cheat-she…] indexed:0 read:1min 2025-11-06 ·