L
Logs in the Sky
GPU Without the Guesswork

How to Check VRAM on Windows, macOS, and Linux

How to Check VRAM on Windows, macOS, and Linux
Learn how to check VRAM on Windows, macOS, and Linux, distinguish GPU memory capacity from free memory, and troubleshoot AI workloads and containers.

A model crashes with an out-of-memory error, and the first question is whether the GPU has enough room—or whether another process got there first. Here’s how to check VRAM: on Windows, open Task Manager and select Performance, then GPU; on Linux with an NVIDIA GPU, run nvidia-smi in a terminal. On a Mac, check About This Mac for memory details, keeping in mind that Apple silicon uses unified memory rather than a separate pool of dedicated VRAM.

Capacity and availability are different measurements. A GPU with 16 GB of memory does not necessarily have 16 GB free when your application starts. For inference work, check both the total and the memory already in use, then watch usage while the model loads and handles a realistic request.

How to check VRAM in Windows

Press Ctrl+Shift+Esc to open Task Manager. Select Performance, choose the GPU, and look for Dedicated GPU memory. The display shows used memory alongside the total available to that GPU. If you see multiple GPUs, select each one: the integrated graphics processor and the discrete GPU can have very different memory arrangements.

Shared GPU memory is system RAM that Windows can make available to the GPU. Don’t add the shared and dedicated totals together and assume your model has that much fast local memory. Shared memory has different performance characteristics, and whether an application can use it depends on the hardware and software.

For another view, press Windows+R, enter dxdiag, and open the Display tab for the relevant GPU. Look for Display Memory or VRAM. Labels and reported values can vary with the graphics driver, particularly on integrated hardware. Task Manager is usually more useful when you want to see usage change as a workload runs.

Illustration for how to check vram

On a laptop with switchable graphics, the GPU displaying your desktop is not necessarily the one running your model. Check the application’s device selection and watch the corresponding GPU in Task Manager while the workload starts.

How to check VRAM on Linux with NVIDIA tools

Open a terminal and run nvidia-smi. The output identifies visible NVIDIA GPUs and reports memory usage and total memory for each device. It also commonly lists processes using the GPU. For a compact, repeatable snapshot, run:

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

Those values are snapshots, not reservations. Another process can allocate memory immediately after you check. Run the command before loading the model and again during inference to see what changed. For a continuously refreshed view, use:

watch -n 1 nvidia-smi

The process list can help identify competing workloads, but visibility may be restricted by permissions or container boundaries. Don’t terminate a process just because it appears in the list; first establish who owns it and whether it is safe to stop.

If nvidia-smi is missing or cannot communicate with the driver, confirm that the machine has an NVIDIA GPU and that its driver is installed and working. Inside a container, the host must also expose the GPU to the container. A successful check on the host does not prove that your application container can see the same device.

For AMD GPUs, nvidia-smi is not the right tool. Depending on the driver and ROCm installation, tools such as amd-smi or rocm-smi may report GPU memory. Check the installed tool’s help for supported commands and confirm that its output refers to the device running your workload.

Checking memory on a Mac

Choose Apple menu, then About This Mac. On Apple silicon, the Memory figure describes unified memory shared by the CPU, GPU, and other components. It is not a dedicated VRAM allocation, and the full amount should not be treated as available exclusively to a model.

Open Activity Monitor and select the Memory tab to inspect overall memory pressure and usage while the application runs. Activity Monitor can also display GPU activity, but GPU activity is not the same as a dedicated VRAM counter. For a specific framework, inspect its own memory reporting and device documentation; reported figures may cover only allocations that framework manages.

Visual context for how to check vram

An Intel Mac with a discrete GPU may show dedicated graphics memory in its hardware details. The exact display depends on the machine and macOS version. Check the graphics entry rather than assuming every Mac uses the same memory architecture.

Why a model can run out of memory anyway

Model weights are only part of the bill. An inference server also needs memory for the runtime, intermediate tensors, input data, and potentially a key-value cache. Longer context windows, larger batches, and concurrent requests can all raise the peak. Training typically adds further allocations for gradients and optimizer state.

Measure the workload you intend to deploy: start with an idle baseline, load the model, then send requests with representative input lengths and concurrency. Record the GPU type, model format, batch size, context length, software versions, and observed peak. Without those details, a memory number is hard to compare with the next deployment.

Framework counters and device-level tools can disagree. For example, a framework may report memory allocated to its tensors separately from memory it has reserved for reuse, while the GPU tool reports a broader device-level view. That difference is useful: it can point to cached allocations, other processes, or overhead outside the framework’s tensor count.

What to do when free memory is too low

First, verify that the workload is on the intended GPU and that another process is not consuming the available memory. Then reduce one variable at a time: try a smaller batch, shorter context, or fewer concurrent requests. If the model itself does not fit, consider a smaller model or a compatible quantized version. Quantization trades precision for a smaller representation and may affect output quality or require specific runtime support.

For a hosted GPU or a Beam deployment, run the same device check inside the actual workload environment, not just on your laptop. Log the selected device and memory at startup, then monitor the application under representative load. Leave headroom for traffic spikes rather than sizing from model weights alone. No panic, just logs.

Last revised · 2026-11-16 19:09
Letters
Readers Write

No letters yet — be the first to write.

Write a letter
© 2026 Logs in the Sky. Logs in the Sky