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.
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.
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?
- CPU split —
ollama ps, healthy answer100% GPU - Reload gap — time the second prompt after a pause, healthy answer warm within seconds
- Context bill — your
num_ctxvs the task, healthy answer sized to the task - Quant weight —
ollama listsizes, healthy answer the smallest that answers well - Swap —
free -hunder load, healthy answer swap untouched
- 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 psoutput - read-from-record piece — no new bench; each suspect has a one-line check