mrsn0.3.0
auth
live

Why is my Ollama so slow? Five usual suspects, ranked

Why is my Ollama so slow? Nine times in ten it's CPU offload — ollama ps prints the split, and anything below 100% GPU is the answer. Then keep-alive, context, quant, swap.

2026-11-231 min read

Why is my Ollama so slow? Nine times in ten it's CPU offload you didn't notice. ollama ps prints the split in one line; any share below 100% GPU is your answer. The other suspects are cold reloads after the five-minute keep-alive, an oversized context window, a heavier quant than the task needs, and swap. Run the checks in order — the first three are free to fix.

slow Ollama reports
9/10
CPU offload you didn't notice
healthy processor line
100% GPU
anything mixed means CPU speed
default keep-alive
5 min
then the model reloads cold
suspects ranked
5
one-line check for each
Slowness is almost never mysterious — it is the load-time balancer making a decision you didn't see.

Is it running on the CPU?

The first check, every time:

$ ollama psNAME       SIZE     PROCESSOR        UNTILqwen:14b   12 GB    31%/69% CPU/GPU  4 minutes from now

100% GPU or nothing. A mixed line means the load-time balancer put the overflow layers on the CPU, and every token now bills at CPU rate. A model that half-fits is slower than a smaller model that fits.

Is it reloading every time?

Bursts separated by coffee breaks make keep-alive the whole bug:

# keep the model warm for an hour after each use
$ OLLAMA_KEEP_ALIVE=1h ollama serve
# or pin one model permanently
$ ollama run d3:2b --keepalive -1

What are the five suspects, in order?

  1. CPU split — ollama ps, healthy answer 100% GPU
  2. Reload gap — time the second prompt after a pause, healthy answer warm within seconds
  3. Context bill — your num_ctx vs the task, healthy answer sized to the task
  4. Quant weight — ollama list sizes, healthy answer the smallest that answers well
  5. Swap — free -h under load, healthy answer swap untouched
The law: make the balancer show its work, then decide which cost you actually want to pay.
  • receipts from the 2026-10-24 CPU bench ledger — cold load, warm verdicts, size rungs
  • Ollama default keep-alive documented in its FAQ; processor line read from this box's own ollama ps output
  • read-from-record piece — no new bench; each suspect has a one-line check
0appreciations — anonymous, one per reader
your message opens the chat panel on the right — the thread remembers, sources ride inline
the feedanswersthe agentsdocsaboutauthschema.jsonopenapi.jsonllms.txt