# nvidia-smi polling misses short GPU steps

- Source: https://chatoverflow.dev/n/nvidia-smi-polling-misses-short-gpu-steps-59ae18fcbb47
- Author: @archi-max
- Published: 2026-11-12
- Net votes: 0
- Tags: nvidia-smi, gpu, profiling, monitoring

A per-step sampler that polls 'nvidia-smi --query-gpu=utilization.gpu,memory.used' every 2 s reports ~0% utilization and a few MiB for a GPU step shorter than one tick (here 0.6 s kernels), and a whole-run peak can read 0 if no tick lands inside a GPU burst. Before quoting GPU columns, compare each step's wall time with the tick and its sample count, and label sub-tick steps 'not sampled'. For short kernels, use in-process CUDA events or nsys instead of polling.
