Open Source

What ollama ps can tell you when a model feels slow

Ollama’s processor column reports whether a loaded model is in system memory, GPU memory or split between them. Use it to narrow the next check, then measure the request you actually care about.

By NurevoFlow Editorial3 min read (estimate)

A local model takes longer than you expected to summarize an incident note. Run ollama ps after the request while the model is loaded. The processor column reports placement. Ollama’s FAQ defines 100% GPU as the model loaded entirely into GPU memory, 100% CPU as entirely in system memory, and a split such as 48%/52% CPU/GPU as partial placement across both. Ollama Local FAQ

That answers a narrow question. If the row says 100% CPU, the model was not placed on the GPU for that loaded run. A split tells you that placement was shared. Neither reading explains why: the column is not a diagnosis of a missing driver, unsupported device or memory limit. Nor does it measure tokens per second, output quality, or whether the response will feel fast enough for your task. Treat it as a state report, not a score.

The timing of the check matters. ollama ps lists models currently running, and Ollama normally keeps a model loaded for five minutes after a request. Send a short request, inspect the row while it is present, and note the model name and context. The running-model API returns context_length alongside the model digest, quantization level and GPU memory size. Those details make it easier to compare the same model build and settings later. (Local FAQ, running-model API, context-length guide)

Context size is worth recording because it changes memory requirements. Ollama documents setting it in the app or at the API, where num_ctx is an option for a generation request. If one run uses a short context and another a much longer one, the processor split may differ; you are no longer comparing the same workload. Keep the model digest and quantization, prompt, context length, generation options and concurrency consistent when you are trying to explain a change in response time. (Context-length guide, generation API)

For a practical comparison, separate a cold start from a warm request. After a cold run, record placement from ollama ps and the loaded context length from /api/ps. Ollama’s API response includes load duration, prompt-evaluation duration and output-evaluation duration, along with token counts; timing values are in nanoseconds. The API also reports cached prompt-token counts, which can matter if repeated requests reuse prompt work. Keep the first request’s load time visible instead of folding it into a claim about generation speed. Then keep the model loaded and repeat the same prompt to observe the warm path. (API usage metrics)

To measure a cold run again, unload the model with ollama stop model-name or set the API keep_alive value to 0. To compare warm runs, leave the model loaded and hold the request settings constant. Record several runs rather than relying on one timing, and keep the cold-start and warm-request results in separate rows. That produces a small measurement table for your own workflow without turning an example into a universal hardware result. (Local FAQ, generation API)

Suppose an operator is deciding whether a local model is ready to summarize internal incident notes. Seeing 100% GPU does not settle the decision: the team still needs to check output quality and measure load, prompt processing and generation under the same context and request they expect to use. Seeing 100% CPU narrows the investigation to CPU placement for that model, but not to a specific cause or remedy. If the placement is unexpected, consult Ollama’s hardware-support list for the operating system and GPU backend, then read the server logs for detection or initialization errors. (Hardware support, troubleshooting)

RunProcessorContextLoad timePrompt timeCached prompt tokensGeneration time
Cold
Warm

A faster warm run with cached prompt tokens can reflect both a loaded model and reused prompt work. Keep the two timings separate when deciding whether model placement explains the delay.

Sources

  1. Local FAQRetrieved
  2. Context lengthRetrieved
  3. List running modelsRetrieved
  4. UsageRetrieved
  5. Generate a responseRetrieved
  6. Hardware supportRetrieved
  7. TroubleshootingRetrieved