All Shortcuts

nvidia-smi (GPU) Shortcuts & Commands — Complete Cheat Sheet (19)

Complete nvidia-smi commands cheat sheet for GPU monitoring, management, and diagnostics on Linux. Essential reference for ML engineers, data scientists, and GPU server administrators.

nvidia-smi is the first command on any machine with an NVIDIA GPU, and this page splits its uses in three: watching, changing settings, and querying for scripts. The notes explain what the default screen actually shows, which management commands need root and persist, and how the query flags turn nvidia-smi into a monitoring source.

Related Shortcut Pages

WEKA NetApp ONTAP NVIDIA DCGM Slurm Cisco IOS systemctl / systemd IBM Spectrum Scale / ESS Juniper JunOS ipmitool mdadm (RAID)

Search all nvidia-smi (GPU) shortcuts interactively

Interactive Shortcut Finder

All nvidia-smi (GPU) Shortcuts

GPU Monitoring

ShortcutActionDescription
nvidia-smiGPU status summaryShow GPU utilization, temperature, memory, and processes.
nvidia-smi -l 1Monitor every 1sRefresh GPU status every 1 second.
watch -n 1 nvidia-smiReal-time monitorReal-time GPU monitoring with watch command.
nvidia-smi -qDetailed infoShow all detailed GPU information.
nvidia-smi -LList GPUsList all GPUs with UUIDs.
nvidia-smi pmonProcess monitorMonitor per-process GPU usage.
nvidia-smi dmonDevice monitorMonitor device metrics every second.
nvidia-smi topo -mTopologyShow GPU NVLink/PCIe topology.
nvidia-smi nvlink -sNVLink statusCheck NVLink connection status and bandwidth.

GPU Management

ShortcutActionDescription
nvidia-smi -pm 1Persistence Mode ONKeep driver loaded to reduce GPU init latency.
nvidia-smi -i 0 -pl 250Set power limitLimit GPU 0 max power to 250W.
nvidia-smi -i 0 -ac 1215,1410Set clocksSet memory/graphics clock speeds.
nvidia-smi -rgcReset clocksReset GPU clocks to default.
nvidia-smi -r -i 0Reset GPUReset GPU 0 (resolves ECC errors etc).
nvidia-smi -e 1Enable ECCEnable ECC memory correction.
nvidia-smi -q -d POWERPower detailsShow detailed GPU power information.

Query & CSV

ShortcutActionDescription
nvidia-smi --query-gpu=name,memory.total,memory.used --format=csvCSV queryOutput GPU info in CSV format.
nvidia-smi --query-gpu=utilization.gpu,temperature.gpu --format=csv -l 55s CSV loggingLog utilization and temp every 5 seconds.
nvidia-smi --query-compute-apps=pid,used_memory --format=csvPer-process memoryShow memory usage per GPU process.
📜 Source: NVIDIA — System Management Interface (nvidia-smi) documentation. Commands from the nvidia-smi manual page and NVIDIA's SMI documentation for the current driver. Checked 2026-09-06. How we verify ›

Frequently Asked Questions

📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

→ Related guide: GPU cluster management: the full command guide

How do I check GPU usage on Linux?

Run 'nvidia-smi' to see a summary of all GPUs including utilization, temperature, memory usage, and running processes.

How do I monitor GPU in real time?

Use 'watch -n 1 nvidia-smi' or 'nvidia-smi -l 1' to refresh GPU status every second.

How do I check GPU memory usage per process?

Run 'nvidia-smi --query-compute-apps=pid,used_memory --format=csv' to see memory usage per process.

How do I enable persistence mode?

Run 'nvidia-smi -pm 1' as root to keep the NVIDIA driver loaded, reducing GPU initialization latency.

How do I check GPU topology and NVLink?

Use 'nvidia-smi topo -m' to see GPU interconnect topology including NVLink and PCIe connections.

Can I combine nvidia-smi (GPU) shortcuts with other tools?

Yes — use My Stack to combine nvidia-smi (GPU) shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.

Browse shortcuts for 268 platforms

Explore All
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

Watching

nvidia-smi prints driver and CUDA versions, then one row per GPU with temperature, power draw against limit, memory used and utilisation, and a process list below. nvidia-smi -l 1 repeats every second and watch -n 1 nvidia-smi does the same with a cleared screen. nvidia-smi dmon streams a compact per-GPU line of clocks, utilisation and memory, and nvidia-smi pmon the same per process — better than the default screen for spotting a job that holds memory but does no work. nvidia-smi -q dumps every detail including ECC counts and retired pages, and nvidia-smi -L lists GPUs with UUIDs. nvidia-smi topo -m shows GPU interconnects and nvidia-smi nvlink -s NVLink status.

Changing settings

nvidia-smi -pm 1 enables persistence mode so the driver stays loaded between jobs, removing several seconds of startup latency; it needs root and resets on reboot unless the persistence daemon runs. nvidia-smi -i 0 -pl 250 sets a power limit in watts on GPU 0, the usual lever for a hot rack, and nvidia-smi -i 0 -ac 1215,1410 pins memory and graphics clocks for reproducible benchmarks, with nvidia-smi -rgc resetting them. nvidia-smi -e 1 enables ECC (reboot required) and nvidia-smi -r -i 0 resets a GPU that is wedged, if no process holds it. nvidia-smi -q -d POWER shows the power section alone.

Querying for scripts

nvidia-smi --query-gpu=name,memory.total,memory.used --format=csv prints selected fields as CSV; --format=csv,noheader,nounits makes it parseable, and nvidia-smi --query-gpu=utilization.gpu,temperature.gpu --format=csv -l 5 logs every five seconds into a file for a run's duration. nvidia-smi --query-compute-apps=pid,used_memory --format=csv lists processes with their memory, which is how a job's footprint is recorded. nvidia-smi --help-query-gpu lists every available field.

🤖 Ask AI about nvidia-smi (GPU) shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok