Smart Systems for Home

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

Linux See GPU Usage? 5 Commands That Show It

· 6 min read · Home Tech

In this article
  1. Why GPU Monitoring on Linux Is Different
  2. The Core Tools: nvidia-smi, radeontop, and nvtop
  3. How to Choose the Right Tool for Your GPU
  4. Step-by-Step: Using nvidia-smi for Real-Time Monitoring
  5. Common Problems and How to Fix Them
  6. Graphical Alternatives: GNOME System Monitor and Others
  7. Safety and Accuracy Notes for GPU Monitoring
  8. Frequently Asked Questions

Yes, Linux can show GPU usage, and the most direct way is to run nvidia-smi for NVIDIA cards or radeontop for AMD cards, but there are also universal tools like nvtop and glmark2 that work across vendors. The exact command depends on your GPU brand and whether you need real-time monitoring, per-process usage, or just a one-time snapshot.

Why GPU Monitoring on Linux Is Different

Unlike Windows, where Task Manager shows GPU usage out of the box, Linux has no single built-in utility that covers all GPUs. The kernel exposes some information through /sys/class/drm and sysfs, but the meaningful metrics—like utilization percentage, memory usage, and temperature—are vendor-specific. NVIDIA provides its own proprietary driver and tools, AMD uses the open-source amdgpu driver with its own set of utilities, and Intel integrated graphics have yet another path. This fragmentation is why you often see people asking "Linux see GPU usage?" and getting different answers depending on their hardware.

The Core Tools: nvidia-smi, radeontop, and nvtop

Here are the three most common commands, each with a specific use case:

  • nvidia-smi – For NVIDIA GPUs. Run nvidia-smi to see a one-time snapshot of utilization, memory, temperature, and running processes. Add nvidia-smi -l 1 to refresh every second, or nvidia-smi dmon for a continuous dashboard. This tool comes with the proprietary NVIDIA driver package.
  • radeontop – For AMD GPUs (both integrated and discrete). Install it via your package manager (e.g., sudo apt install radeontop on Debian/Ubuntu). Run radeontop to see a live text-based graph of GPU load, memory, and other metrics. It works with the open-source amdgpu driver.
  • nvtop – A cross-vendor, top-like tool that supports NVIDIA, AMD, and Intel GPUs. Install it with sudo apt install nvtop (or your distro's equivalent). Run nvtop to get a full-screen, real-time view of all GPUs, including per-process usage. This is the closest Linux equivalent to Windows Task Manager's GPU tab.

How to Choose the Right Tool for Your GPU

Your choice depends on your GPU vendor and whether you need live monitoring or a single check. If you have an NVIDIA card, nvidia-smi is the most reliable and is already installed with the driver. For AMD, radeontop is the standard, but nvtop is a better all-rounder if you also have an Intel iGPU or want a unified view. For Intel only, you can use intel_gpu_top (part of the intel-gpu-tools package). If you are unsure what GPU you have, run lspci | grep -i vga to see the vendor and model.

Step-by-Step: Using nvidia-smi for Real-Time Monitoring

Here is a quick walkthrough for NVIDIA users:

  1. Open a terminal and type nvidia-smi. You will see a table with GPU utilization (%), memory usage, temperature, and a list of processes using the GPU.
  2. To refresh every 2 seconds, run nvidia-smi -l 2. Press Ctrl+C to stop.
  3. To see only the utilization and memory in a compact format, use nvidia-smi --query-gpu=utilization.gpu,memory.used --format=csv.
  4. For per-process usage, run nvidia-smi pmon (if supported) or look at the "Processes" section in the default output.

Note that nvidia-smi only works if the proprietary NVIDIA driver is installed. If you are using the open-source Nouveau driver, you may get partial or no output.

Common Problems and How to Fix Them

Several issues can prevent you from seeing GPU usage on Linux. The most common are:

  • "nvidia-smi: command not found" – The NVIDIA driver is not installed, or the tool is not in your PATH. Install the driver from your distro's repositories (e.g., sudo apt install nvidia-driver on Ubuntu) and reboot.
  • AMD GPU shows 0% always – This often happens if the amdgpu kernel module is not loaded. Check with lsmod | grep amdgpu. If it's missing, you may need to enable it in your kernel boot parameters (e.g., add amdgpu.dpm=1).
  • nvtop shows no GPUs – Ensure your user has permission to read GPU files. On some systems, you need to be in the video group. Add yourself with sudo usermod -aG video $USER and log out/in.
  • Virtual machines or containers – If you are in a VM, GPU passthrough may not be configured, so the tools show nothing. This is a host configuration issue, not a tool problem.

Graphical Alternatives: GNOME System Monitor and Others

If you prefer a GUI, GNOME System Monitor (now called "System Monitor" in GNOME 46+) includes a GPU section that shows utilization and memory for NVIDIA and AMD GPUs, provided the appropriate drivers are installed. KDE's System Monitor (plasma-systemmonitor) also has GPU sensors. For a lightweight option, you can use conky with GPU plugins, or install glances (a terminal-based monitor) which supports GPU metrics via optional plugins. These tools read the same underlying data as the command-line utilities, so they are just wrappers.

Safety and Accuracy Notes for GPU Monitoring

Monitoring GPU usage is safe and does not affect your hardware. However, be aware of a few things:

  • Overclocking – If you are using tools like nvtop to check usage before overclocking, remember that overclocking can cause instability and may void your warranty. Do not push voltages beyond manufacturer defaults.
  • Driver vs. Hardware utilization – The utilization percentage reported is the time the GPU is busy, not necessarily the maximum compute power. For example, a game may show 100% GPU usage while a video render may show 60% because of memory bottlenecks.
  • Power supply – Never open your power supply unit to check anything. GPU monitoring software only reads data from the driver; it does not require physical access.

Frequently Asked Questions

Can I see GPU usage in the terminal without installing anything?

If you have an NVIDIA GPU with the proprietary driver, nvidia-smi is already installed. For AMD, you might already have radeontop if you installed the amdgpu driver, but it is not guaranteed. For a universal solution, you will need to install nvtop or glances from your package manager.

Why does my GPU show 0% usage even when I'm running a game?

This usually means the GPU is not being used for rendering—perhaps the game is using the integrated GPU instead of the discrete one, or the driver is not properly loaded. Check your GPU selection settings (e.g., via prime-select on NVIDIA Optimus laptops) and verify the driver is active with lspci -k | grep -A 2 -i vga.

How do I monitor GPU usage over time and log it?

You can use nvidia-smi --query-gpu=utilization.gpu,memory.used --format=csv -l 1 > gpu_log.txt to append a line every second. For AMD, you can script radeontop --dump or use watch -n 1 radeontop to see live updates. For a more advanced solution, tools like collectl or dstat can be configured to include GPU metrics.

Is there a way to see per-process GPU usage like in Windows Task Manager?

Yes. nvtop shows per-process GPU usage for NVIDIA and AMD. For NVIDIA specifically, nvidia-smi also lists processes with their memory usage and GPU utilization. For AMD, radeontop does not show per-process info, but you can use amdgpu_top (a newer tool) or nvtop for that.

Does GPU usage monitoring work on laptops with hybrid graphics?

It can, but you may need to switch to the discrete GPU first. On NVIDIA Optimus systems, use prime-select to choose the NVIDIA GPU, then run nvidia-smi. On AMD/Intel hybrid systems, you may need to set DRI_PRIME=1 before launching an application to force it onto the AMD GPU, and then monitor with radeontop.

What is the difference between GPU utilization and memory usage?

GPU utilization is the percentage of time the GPU's compute units are active, while memory usage is how much VRAM is allocated. A GPU can show high memory usage but low utilization (e.g., when a large texture is loaded but not rendered), or high utilization with low memory (e.g., a simple 3D scene). Both are important for diagnosing performance issues.