refusal rate
Subscribe

ollama ps lists loaded models. What NAME, ID, SIZE, PROCESSOR, CONTEXT, RUNNER and UNTIL mean, why it says Stopping or shows nothing, and the /api/ps API.

[ fig. 01 — reference ]48×5
[ fig. 01 — reference ]16×5

Short answer

ollama ps lists the models the Ollama server currently holds in memory, not the models you have downloaded. Each row shows the model name, a 12-character digest, its memory footprint, the CPU/GPU split, the context length it was loaded with, the runner, and when it will unload. A CPU/GPU split such as 19%/81% means part of the model sits in system RAM, which is the usual cause of slow generation.

Columns (v0.40.15)
NAME, ID, SIZE, PROCESSOR, CONTEXT, RUNNER, UNTIL
API equivalent
GET /api/ps
Default unload timer
5 minutes
Sort order
Longest time left first

Key takeaways

  1. ollama ps shows loaded models only. ollama list shows what is on disk.
  2. PROCESSOR is computed from size and size_vram: the CPU share is (size - size_vram) / size, rounded. Anything other than 100% GPU on a GPU machine means offload.
  3. SIZE is total memory for the loaded instance (weights plus context cache), in decimal GB, so it is usually larger than the file on disk.
  4. UNTIL counts down the keep-alive timer. Stopping... means the timer has passed and the server is still unloading; Forever means keep_alive -1.
  5. An empty table means nothing is loaded on the server your CLI talks to. On macOS and Windows, ollama ps starts the app if the server is down, and a fresh server has nothing loaded.

ollama ps is the one command that tells you where a model actually lives once it is loaded: how much memory it takes, how much of it is on the GPU, how much context it was given, and when it will be evicted. Run it in a second terminal while a model is answering, and most “why is this slow” questions answer themselves. Every field description below comes from Ollama’s docs and the CLI source at release v0.40.15 (November 3, 2026).

A typical row looks like the example in Ollama’s context-length docs:

plaintext
NAME             ID              SIZE      PROCESSOR    CONTEXT    UNTIL
gemma4:latest    c6eb396dbd59    9.6 GB    100% GPU     131072     2 minutes from now

Current builds (v0.40.15) also print a RUNNER column between CONTEXT and UNTIL (cmd/cmd.go).

What does each ollama ps column mean?

Each column maps to one field of the server’s /api/ps response, formatted by the CLI.

ColumnWhat it showsHow it’s computed
NAMEThe model tag that is loaded, e.g. qwen3-coder:latestShortest display form of the model name
IDFirst 12 characters of the model’s SHA256 digestSame ID ollama list shows, so you can match the two
SIZEMemory the loaded instance uses: weights plus context cache and bufferssize in bytes, printed in decimal units (1 GB = 1,000,000,000 bytes)
PROCESSORWhere that memory sits: 100% GPU, 100% CPU, N%/M% CPU/GPU or UnknownFrom size and size_vram (see next section)
CONTEXTContext length the model was loaded with, in tokenscontext_length; prints - when it is 0, for example speech-only models
RUNNERInference backend: llamacpp, ggml or mlxrunner field; newer builds only
UNTILWhen the keep-alive timer unloads the modelexpires_at, printed relative to now

Three details trip people up:

  • SIZE is not the download size. It is the footprint of the running instance, so a larger context makes the same model bigger here. The docs example shows a gemma4 instance at 9.6 GB with a 131,072-token context.
  • The filter is a prefix. ollama ps qwen lists every loaded model whose name starts with qwen; the source uses a plain prefix match, not a pattern.
  • Rows are sorted by time left. The server sorts the list so the model with the longest remaining keep-alive comes first (server/routes.go), which is why order can change between runs.

What does ‘48%/52% CPU/GPU’ tell you?

A split like 48%/52% CPU/GPU means the model did not fit in VRAM, so Ollama put 48% of its memory in system RAM and 52% on the GPU. The Ollama FAQ gives the three cases: 100% GPU is loaded entirely into the GPU, 100% CPU is entirely in system memory, and a split means it was loaded partially onto both.

The CLI computes it from two API fields. If size_vram is 0, it prints 100% CPU. If size_vram equals size, it prints 100% GPU. If size_vram is larger than size or size is 0, it prints Unknown. Otherwise the CPU share is (size - size_vram) / size, rounded to a whole percent, and the GPU share is the rest.

[ fig. 01 — PROCESSOR from size and size_vram. Source: docs.ollama.com/api/ps and ollama v0.40.15 cmd/cmd.go ]
ollama ps computes the PROCESSOR column from two API fields: in Ollama's own /api/ps example, size is 6.59 GB and size_vram is 5.33 GB, so 1.26 GB sits in system RAM and the row reads 19%/81% CPU/GPU.

Why it matters: tokens are generated layer by layer, and the layers held in system RAM run at CPU and RAM speed. Even a small CPU share usually drags the whole generation down, because every token waits for those layers. How to read the result:

  • 100% GPU: the model and its context fit. If it is still slow, the cause is elsewhere (model size, quant, or concurrent requests).
  • Small CPU share (under ~20%): you are just over the line. Lowering the context length is often enough to get back to 100% GPU, because the context cache counts toward SIZE. See local LLM context length for how much memory each context size costs.
  • Large CPU share: the model is too big for the card at this context. Use a smaller quant or a smaller model, or accept CPU speed. If loads fail outright, that is an Ollama out of memory problem.
  • 100% CPU on a machine with a GPU: Ollama is not using the GPU at all. That is a detection or driver problem, covered in Ollama not using GPU.

On Apple Silicon, 100% GPU is the normal reading, because Metal uses the unified memory. A split there means Ollama decided the model would not fit in the memory it allows the GPU to use.

What does UNTIL mean, and why does it say Stopping?

UNTIL shows when Ollama’s keep-alive timer will unload the model; the default is 5 minutes after the last request (FAQ). Every new request resets the timer, so the value moves while you use the model. The CLI prints one of these:

UNTIL valueMeaning
4 minutes from nowNormal countdown to unload
ForeverExpiry is more than 20 years away, which is what keep_alive: -1 produces
NeverThe expiry time is empty (zero value)
Stopping...The expiry time has already passed; the server is still freeing the model

Stopping... is the CLI’s label for “expires_at is in the past”. You see it in the short window between the timer running out (or ollama stop, or keep_alive: 0) and the runner process exiting. If it sticks for a long time, the runner is usually still finishing a request or the unload is hung; check the server log. To change the timer itself, set OLLAMA_KEEP_ALIVE or the per-request keep_alive, explained in Ollama keep alive.

Why does ollama ps show nothing?

An empty table means the server your CLI is talking to has no model in memory right now. That is a normal state, not an error. The common causes:

  1. The model already unloaded. After 5 idle minutes it is gone from ollama ps but still on disk in ollama list.
  2. You are asking a different server. The CLI connects to OLLAMA_HOST (default 127.0.0.1:11434). If the model runs in Docker, on another machine, or on another port, ollama ps on your host queries the wrong instance. Point it at the right one: OLLAMA_HOST=192.168.1.20:11434 ollama ps.
  3. The server was just started. On macOS and Windows, if the server is not reachable, ollama ps launches the Ollama app before it queries (cmd/cmd.go). A server that just started has nothing loaded, so you get an empty list instead of an error.
  4. Nothing has loaded yet. A model only appears after its first request starts loading it. Run ollama run <model> in one terminal and ollama ps in another.

On Linux, the same situation gives an error instead of an empty table: could not connect to ollama server, run 'ollama serve' to start it.

How do you get the same data from the API? (/api/ps)

GET /api/ps returns the same data as JSON, with exact byte counts instead of rounded ones, which is what you want for scripts and dashboards (API docs).

plaintext
curl http://localhost:11434/api/ps

Each entry in models has name, model, size (bytes), size_vram (bytes on the GPU), digest, details (format, family, parameter size, quantization level), expires_at (an RFC 3339 timestamp) and context_length; v0.40.15 also returns runner. To get the CPU/GPU split in a script, compute it the way the CLI does:

plaintext
curl -s localhost:11434/api/ps | jq -r '.models[] | "\(.name) \(((.size - .size_vram) / .size * 100) | round)% CPU"'

For the docs example (size 6,591,830,464, size_vram 5,333,539,264), that gives 19% CPU, the same 19%/81% the CLI would print. Polling this endpoint is a cheap way to alert when a model falls off the GPU after a context change.

What do developers report in practice?

Practitioners mostly use ollama ps for one thing: catching offload. These are community reports, not our tests.

  • Context pushes a model off the GPU. An r/LocalLLaMA user running qwen3-coder in Docker on an RTX 3090 posted ollama ps output showing 22 GB, 74%/26% CPU/GPU, and a 32,768-token context (thread). Replies said the context did not fit in 24 GB of VRAM alongside the weights and suggested starting near 10k tokens and raising it while watching VRAM.
  • A split is a performance warning, not a success state. On Hacker News, a commenter reviewing a Gemma 4 setup guide pointed out that one of its steps showed ollama ps at 14%/86% CPU/GPU and asked whether that meant very poor performance (HN).
  • On unified memory, check for swap too. Another HN commenter said the way to confirm a model is fully loaded is ollama ps: when a Mac starts hitting limits, the split appears there and the unified memory machine starts to swap, with performance collapsing (HN).
  • SIZE vs file size. A developer on an M3 Max described comparing the weights file on disk with what ollama ps reported at a 4k context to estimate the overhead (HN).
  • 100% CPU as the first clue. A user with a 16 GB Radeon Pro VII reported generation was unworkably slow and ollama ps showed 100% CPU, with the GPU unused (HN). An r/LocalLLaMA user with an RX 9060 XT was told to check ollama ps because AMD cards can fall back to CPU silently when ROCm is not set up; they fixed it with GPU-specific ROCm libraries (thread).

The pattern across these reports is consistent: read PROCESSOR first, then CONTEXT, because the context you asked for is the variable you can change fastest.

FAQ

What is the difference between ollama ps and ollama list?

ollama list shows every model downloaded to disk. ollama ps shows only the models loaded in memory right now, with their memory use and unload time. The ID column is the same digest prefix in both.

How do I check if Ollama is using the GPU?

Run ollama ps while the model is loaded and read PROCESSOR. 100% GPU means fully on the GPU, a split means partial offload, and 100% CPU means the GPU is not used. The Ollama FAQ documents this as the official check.

Why is SIZE in ollama ps bigger than the model file?

SIZE is the running instance, which includes the context cache and buffers on top of the weights. A longer context makes it larger. It is also printed in decimal GB, not GiB.

How do I stop a model that shows in ollama ps?

Run ollama stop <model> or send a request with keep_alive: 0. The row shows Stopping... briefly and then disappears.

Does ollama ps show models from Ollama running in Docker?

Only if your CLI points at that server. ollama ps queries OLLAMA_HOST, so set it to the container’s published address, or run docker exec <container> ollama ps.

Sources (8)
  1. Ollama docs FAQ: How can I tell if my model was loaded onto the GPU?
  2. Ollama API docs: List running models (/api/ps)
  3. Ollama docs: Context length
  4. Ollama docs: CLI reference
  5. ollama/ollama v0.40.15, cmd/cmd.go (ListRunningHandler, checkServerHeartbeat)
  6. ollama/ollama v0.40.15, server/routes.go (PsHandler)
  7. r/LocalLLaMA: Qwen3-Coder 30B running at 74% CPU on 3090 (ollama docker)
  8. Hacker News comment on a 14%/86% CPU/GPU split (Apr 2026)

Keep reading

[ fig. 02 — reference ]18×8

How do you keep an Ollama model loaded in memory (keep_alive)?

Nov 2, 2026 · Reference

Ollama keeps a model in memory for 5 minutes after its last request, then unloads it. Set OLLAMA_KEEP_ALIVE on the server (for example 24h, or -1 for forever) to change the default, or send keep_alive on each request, which always wins. keep_alive 0 or ollama stop unloads immediately. Most 'not working' reports come from a client sending its own keep_alive, an env var the service never sees, or a value Ollama cannot parse.

Read
[ fig. 03 — troubleshooting ]18×8

Why is Ollama not using your GPU, and how do you fix it?

Nov 2, 2026 · Troubleshooting

When Ollama is not using your GPU, run ollama ps while the model is loaded. A split such as 48%/52% CPU/GPU means Ollama found the GPU but the model plus its context doesn't fit in VRAM. 100% CPU means GPU discovery failed, and the server log names the reason: a driver or kernel module problem, a container without GPU access, an unsupported AMD target, or the wrong GPU selected.

Read
[ fig. 04 — troubleshooting ]18×8

How do you fix Ollama out-of-memory errors?

Nov 2, 2026 · Troubleshooting

An Ollama out-of-memory error is one of three problems. 'unable to allocate CUDA0 buffer' or 'cudaMalloc failed' at load means the weights, KV cache and compute buffer don't fit in VRAM. A crash seconds into a reply means a buffer grew after loading. 'model requires more system memory' means free RAM, not VRAM, ran out. Fix VRAM errors by shrinking the quant, num_ctx and parallel slots first, then flash attention, KV quantization and num_gpu.

Read