Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Measure GPU Utilization & Find Underused AI Capacity

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to accurately measure GPU utilization on Linux or Windows and then identify underused AI capacity—GPUs that are idle or running at low occupancy—so you can schedule more work, consolidate workloads, or decide whether you really need that next GPU purchase. You’ll need access to the machine running the GPUs, a terminal (Linux) or PowerShell (Windows), and the ability to install monitoring tools if they aren’t already present.

What You'll Need

  • A computer with an NVIDIA GPU (most AI work uses NVIDIA; AMD and Intel have similar tools but this guide focuses on NVIDIA).
  • Administrator/sudo access to install drivers and monitoring utilities.
  • NVIDIA drivers installed (check with nvidia-smi).
  • For Linux: nvtop, nvidia-smi (comes with drivers), and optionally dcgmi (from DCGM) for deeper metrics.
  • For Windows: NVIDIA Control Panel or Task Manager (GPU tab) for basic checks, and nvidia-smi from an admin command prompt.

Step-by-Step

  1. Verify your GPU is recognized. Open a terminal (Linux) or command prompt (Windows) and run nvidia-smi. If it shows your GPU model, driver version, and current utilization, you’re ready. If not, install the correct NVIDIA driver for your OS.
  2. Understand what “utilization” really means. GPU utilization reported by nvidia-smi is the percentage of time during the sample window that one or more GPU cores were busy. It does NOT mean all cores were busy—a single kernel using one SM can show 100% utilization. For AI capacity, you also need to look at memory usage, power draw, and temperature to get the full picture.
  3. Measure real-time utilization. Run nvidia-smi once to see a snapshot. For continuous monitoring, run watch -n 1 nvidia-smi on Linux (updates every second) or use Task Manager’s GPU tab on Windows (enable “Cuda” as one of the graphs). Note the “Volatile GPU-Util” column—that’s the core utilization.
  4. Log utilization over time. For a meaningful assessment, capture data over a representative period (e.g., an hour of typical AI training). On Linux, use nvidia-smi --query-gpu=index,utilization.gpu,memory.used,power.draw,temperature.gpu --format=csv -l 5 to log every 5 seconds to a file. On Windows, you can use nvidia-smi with the same query but without the -l option (run it in a loop with a batch script).
  5. Identify underused GPUs. After logging, look for GPUs that show low average utilization (e.g., below 30%) while memory usage is also low (e.g., below 50%). Also check power draw—if a GPU is drawing near idle power (e.g., 20-30W for a typical 250W card) while the system is supposed to be working, it’s underused.
  6. Check for memory bottlenecks. If utilization is high but memory is nearly full, you may be memory-bound—the GPU is waiting for data transfers. If memory is low but utilization is low, you have spare capacity. Use nvidia-smi --query-gpu=memory.used,memory.total --format=csv to see memory usage.
  7. Look at per-process usage. Run nvidia-smi and look at the “Processes” section. See which processes are using the GPU and how much memory they consume. If a GPU has no processes but is still showing high utilization, something is wrong (maybe a zombie process). If a GPU has processes but low utilization, those processes are not fully using the GPU.
  8. Use advanced tools for deeper insight. On Linux, install nvtop (a top-like tool for GPUs) to see per-process utilization and memory in real time. For NVIDIA data center GPUs, install DCGM and use dcgmi stats -v to get detailed metrics like SM occupancy and tensor core usage.
  9. Calculate your “effective capacity.” For each GPU, compute the average utilization over your logging period. For example, if a GPU averages 20% utilization over an hour, you have 80% idle capacity. Multiply that by the GPU’s theoretical TFLOPS (look up your model) to estimate unused compute.
  10. Take action on underused GPUs. If you find underused GPUs, you can: (a) schedule more jobs to run concurrently (e.g., using Kubernetes or a simple job scheduler), (b) consolidate workloads onto fewer GPUs and power off the rest, or (c) if you’re renting cloud GPUs, reduce your instance count.

Common Mistakes

  • Relying on a single snapshot. One reading may catch a spike or a lull. Always log over time.
  • Ignoring memory. A GPU can show 100% utilization but be memory-bound—meaning it’s not actually doing useful compute. Check memory usage alongside.
  • Confusing “utilization” with “occupancy.” Utilization is time busy; occupancy is how many cores are active. A GPU can be 100% utilized with only 10% occupancy if a small kernel runs continuously.
  • Not accounting for data transfer. If your data pipeline is slow, the GPU may be idle waiting for data. Monitor CPU and disk I/O as well.
  • Forgetting about power limits. Some GPUs have power caps that throttle performance. Check power draw—if it’s at the limit, you may need to adjust power settings (but be careful with warranty).

Tips

  • Use nvidia-smi with the --query-gpu option to get machine-readable output that’s easy to log and parse.
  • Set up a simple cron job (Linux) to log GPU stats every minute to a file, then analyze with a spreadsheet or script.
  • For AI training, also monitor GPU memory per process—if a process uses only a fraction of memory, you can often run multiple processes on the same GPU (e.g., using MPS or CUDA MPS).
  • Check your driver version—older drivers may not report utilization accurately for newer GPUs.
  • If you’re using a cloud provider, their monitoring dashboards often show GPU utilization—but they may not show memory or power, so use nvidia-smi inside the instance.

Troubleshooting

  • nvidia-smi not found: Install the NVIDIA driver. On Linux, use your package manager (e.g., sudo apt install nvidia-driver-XXX). On Windows, download from NVIDIA’s website.
  • Utilization always shows 0%: This can happen if the GPU is in a low-power state or if the driver isn’t properly loaded. Reboot the machine, or run sudo nvidia-smi -pm 1 (Linux) to enable persistence mode.
  • Utilization shows 100% but performance is poor: Check memory usage—if memory is nearly full, you’re likely swapping. Also check if the GPU is throttling due to temperature (see nvidia-smi for temperature and power).
  • Logging with -l doesn’t work on Windows: The -l option is not supported on Windows. Use a loop in PowerShell: while($true) { nvidia-smi --query-gpu=... --format=csv; Start-Sleep -Seconds 5 }.
  • Multiple GPUs show different utilization: That’s normal—different workloads may use different GPUs. Check per-GPU processes to understand.

Frequently Asked Questions

What is a good GPU utilization percentage for AI workloads?

For training, you want to see 80% or higher. For inference, lower is normal because inference is often latency-bound, not throughput-bound. If you’re below 50% consistently, you likely have idle capacity.

Does 100% utilization mean the GPU is fully used?

No. It means the GPU was busy during the sampling window, but it could be running a small kernel that only uses a fraction of the cores. Check memory and power to see if the GPU is truly saturated.

How can I measure utilization on AMD or Intel GPUs?

AMD has rocm-smi (Linux) and Intel has xpu-smi or intel_gpu_top. The principles are the same—look at core utilization, memory, and power.

Can I safely run multiple AI jobs on one GPU?

Yes, if memory allows. Use CUDA MPS (Multi-Process Service) on NVIDIA to partition the GPU. But be aware that performance may degrade if jobs compete for memory bandwidth.

What is “volatile” in nvidia-smi’s utilization column?

It means the value is sampled over the last second or so, not an average. It can fluctuate wildly. For a stable measure, log over time and average.

How do I find underused GPUs in a cluster?

Use a cluster monitoring tool like DCGM, Prometheus with nvidia-dcgm-exporter, or simply run a script that SSHes into each node and runs nvidia-smi to collect stats.