Skip to content

How-ToGPU

How to Check VRAM Usage on Linux (NVIDIA, AMD and Intel)

How to check graphics memory use on Linux for local AI: nvidia-smi for NVIDIA cards, amd-smi and the amdgpu sysfs files for AMD Radeon, nvtop for a live view across NVIDIA, AMD and Intel, and ollama ps to see whether a model fits in VRAM, plus what to do if you run out.

By , Systems & Technical Editor

6 min read

How to Check VRAM Usage on Linux (NVIDIA, AMD and Intel)

It's based on the official documentation for NVIDIA's nvidia-smi, AMD SMI, the Linux kernel's amdgpu driver, nvtop and Ollama, all read on 26 November 2026. Command options change between versions, so check --help on your own system.

If you run AI models at home, the amount of video memory (VRAM) in use matters more than almost any other number. When a model and its context fit entirely in VRAM, the graphics card does all the work. When they don't, part of the model spills into system RAM and is processed by the CPU, which is much slower. Our guide to how context length affects VRAM explains why a model that loads fine can still run out of room as a conversation grows.

On Windows, Task Manager shows this at a glance, as covered in how to check VRAM usage on Windows. Linux has no single built-in equivalent, but each GPU maker provides a command-line tool, and there's an excellent cross-vendor monitor too. Here's how to use them.

Quick answer

Graphics card

Quickest command

What it shows

NVIDIA (proprietary driver)

nvidia-smi

Total and used memory per GPU, plus processes

AMD Radeon (amdgpu driver)

amd-smi monitor -v

Memory use in MB per GPU

Any of the above, plus Intel

nvtop

Live graphs of memory and utilisation per GPU and process

Ollama users

ollama ps

Which models are loaded and how much is on the GPU

NVIDIA: nvidia-smi

nvidia-smi is installed with NVIDIA's Linux driver, so if your card works you almost certainly have it. Our guide to installing Ollama on Linux uses it to check the driver is working.

Run it with no options:

nvidia-smi

The summary table shows each GPU with its memory use as used and total MiB, plus a list of processes using the card at the bottom. That process list is useful when something you've forgotten about, such as a background Python script or a second model server, is holding on to memory.

For the full picture, run:

nvidia-smi -q -d MEMORY

NVIDIA's documentation describes the "FB Memory Usage" section as on-board frame buffer memory information, and notes that the reported total can be affected by ECC state on cards that support ECC.

Watching memory while a model runs

The most useful habit is to watch VRAM while you load a model and send it a long prompt. nvidia-smi has a loop option, -l (or --loop), which repeats the query at an interval in seconds; NVIDIA's documentation says it defaults to five seconds if you don't give a number. There's also -lms for millisecond intervals.

To get just the numbers you care about in a compact format, use the selective query options:

nvidia-smi --query-gpu=index,name,memory.used,memory.total --format=csv -l 2

And to see which processes are using memory:

nvidia-smi --query-compute-apps=pid,process_name,used_memory --format=csv

--query-compute-apps lists the currently active compute processes. Run nvidia-smi --help-query-compute-apps and nvidia-smi --help-query-gpu to see every field your driver supports.

AMD Radeon: amd-smi

For AMD graphics cards on Linux, AMD's current tool is AMD SMI, run as amd-smi. It's part of ROCm. The older rocm-smi still exists, but AMD's ROCm SMI documentation says it remains deprecated and new deployments should use AMD SMI, so that's what we'll use here.

Running amd-smi with no options prints a summary table. According to AMD's documentation, the second row for each GPU includes VRAM usage, and a process table lists running GPU processes with their VRAM memory, GTT memory and total memory use.

For a live view, use the monitor command with the VRAM option:

amd-smi monitor -v

AMD documents -v (--vram-usage) as "Monitor memory usage in MB". You can add other metrics, such as -p for power use and power cap, -t for temperature and -u for graphics utilisation and clock, and -q to add a process table underneath.

To see the card's memory details, such as type, size and bus width, use:

amd-smi static -v

And for per-process memory:

amd-smi process

AMD's example output shows each process with separate figures for VRAM, GTT (system memory mapped for the GPU) and total memory. AMD notes that the process name may need elevated permissions to display, so try sudo if names are missing.

Ryzen AI chips and other APUs

If your AI PC uses an AMD processor with integrated graphics, such as a Ryzen AI Max mini PC, memory works differently. AMD's documentation explains that on APUs amd-smi reports the larger of the VRAM and GTT pools, so the memory column header changes from VRAM_USAGE to GTT_USAGE. In other words, on these chips most of what a model uses may show up as GTT rather than dedicated VRAM. Our explainer on unified memory vs VRAM for local AI covers why that matters.

Without any tools: the amdgpu sysfs files

The Linux kernel's amdgpu driver also reports memory through sysfs, which is handy on a minimal server install. The kernel documentation says mem_info_vram_total returns the total VRAM on the device and mem_info_vram_used returns the amount currently used, both in bytes. They sit in the card's device folder, usually:

cat /sys/class/drm/card*/device/mem_info_vram_used
cat /sys/class/drm/card*/device/mem_info_vram_total

The card number can differ between systems, and a PC with integrated and discrete graphics will have more than one card folder, so check which is which.

Any GPU: nvtop

nvtop is an open-source, interactive monitor that works like the htop process viewer but for graphics cards. Its project page lists support for AMD GPUs through the amdgpu driver, Intel GPUs through the i915 and xe drivers, and NVIDIA GPUs on the proprietary driver, among others. It shows a graph per GPU plus a process list with each process's GPU memory use, which makes it the easiest way to watch a model load in real time.

The project README says that on Ubuntu 22.04, Debian 11 and newer it can be installed from the standard repositories:

sudo apt install nvtop

Then just run nvtop. The project's README lists packages for other distributions and a Snap.

There are a couple of limits worth knowing from the project's documentation. Intel integrated graphics and NPUs don't have memory of their own, so memory figures for them are shown relative to shared system memory. And for AMD cards, ROCm and HIP work goes through the kernel's KFD interface rather than the normal graphics path, and nvtop needs kernel support for KFD to show those compute processes.

Ollama: ollama ps

If you use Ollama, the simplest check is built in. Ollama's FAQ says to use ollama ps to see which models are currently loaded into memory:

ollama ps

The PROCESSOR column tells you where the model was loaded. Ollama's documentation shows 100% GPU when the model is entirely in GPU memory, 100% CPU when it's entirely in system RAM, and a split such as 48%/52% CPU/GPU when it's divided between the two. If you see a split, the model doesn't fit in VRAM and will run noticeably slower.

What to do if you're out of VRAM

Once you can see the numbers, the fixes are familiar:

If heat or power is the issue rather than memory, NVIDIA users can cap board power, as explained in how to set a GPU power limit with nvidia-smi.

Our verdict

On Linux, nvidia-smi for NVIDIA cards and amd-smi monitor -v for AMD Radeon cards are the quickest, most reliable ways to check VRAM use, and both can loop so you can watch memory while a model loads. Install nvtop if you want a live, cross-vendor view with per-process memory, and Ollama users should keep ollama ps handy: anything other than 100% GPU means the model doesn't fit and will run slower.

The bottom line

On Linux, nvidia-smi for NVIDIA cards and amd-smi monitor -v for AMD Radeon cards are the quickest, most reliable ways to check VRAM use, and both can loop so you can watch memory while a model loads. Install nvtop if you want a live, cross-vendor view with per-process memory, and Ollama users should keep ollama ps handy: anything other than 100% GPU means the model doesn't fit and will run slower.

In this article

Sources

  1. 01NVIDIA, nvidia-smi documentation
  2. 02AMD ROCm documentation, AMD SMI CLI tool
  3. 03AMD ROCm documentation, ROCm SMI
  4. 04The Linux kernel documentation, amdgpu misc driver information
  5. 05nvtop project README (GitHub)
  6. 06Ollama, FAQ

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

NVIDIA App vs OBS Studio: Which Is Better for Recording Gameplay?

Versus

NVIDIA App vs OBS Studio: Which Is Better for Recording Gameplay?

The NVIDIA App is the easier gameplay recorder for GeForce RTX owners, with Instant Replay of the last 30 seconds, manual recording NVIDIA quotes up to 4K HDR at 120 fps, AV1 on RTX 40 Series and automatic Highlights. OBS Studio is free, open source and cross-platform, works with NVIDIA, AMD and Intel encoders, and adds scenes, webcams, audio filters and streaming.

Callum Reid6 min

How to Turn On Tamper Protection in Windows 11 (and Why You Should)

How-To

How to Turn On Tamper Protection in Windows 11 (and Why You Should)

Tamper protection in Windows Security stops other apps, scripts and registry edits from turning off Microsoft Defender's real-time protection, cloud protection, behaviour monitoring and exclusions, while admins can still change settings themselves. Turn it on under Virus & threat protection > Manage settings, check it with Get-MpComputerStatus, and leave it on.

Marcus Thorne6 min

Best Graphics Card for Video Editing in 2026

Best Picks

Best Graphics Card for Video Editing in 2026

For video editing, look at VRAM, hardware encoders and decoders, AV1 support and power. The RTX 5070 Ti is our best overall pick with 16GB and two NVENC encoders; the RTX 5060 Ti 16GB is the value choice at 180W; the RTX 5080 adds a second decoder; the 32GB RTX 5090 suits 8K and heavy projects; AMD's RX 9070 XT is the best Radeon option.

Hannah Vance6 min

Best SFF-Ready Graphics Cards for Small Form Factor PCs in 2026

Best Picks

Best SFF-Ready Graphics Cards for Small Form Factor PCs in 2026

NVIDIA's SFF-Ready label marks RTX 70-class and faster cards no taller than 151mm including the power cable bend, no longer than 304mm and no thicker than 2.5 slots. Our picks: MSI RTX 5070 Ti Ventus 3X OC overall, ASUS RTX 5070 Prime OC for value, and the two-slot RTX 5080 Founders Edition for slim high-end builds. Check case clearance and PSU first.

Hannah Vance7 min