published fresh until

Ollama: why is my second Vulkan request much slower?

Summary One Ollama 0.40.8 RX 6600 XT report links second-request slowdown to a cache-on/cache-off difference. A separate AMD GPU kept normal speed. This describes the reported environments and the reporter’s workaround, with no released correction established (checked 2026-11-02).

Not for memory allocation or runner failures, see ollama-memory-runner-500-context-gpu-error-triage.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Use the reported cache-on/cache-off comparison to diagnose Ollama’s second-request slowdown, without assuming it affects all AMD Vulkan systems (jb95866-creator’s report, rick-github’s different-GPU control).

Do first: run ollama stop qwen3:4b before a controlled pair of identical requests, then keep the model loaded between those requests, following jb95866-creator’s reproduction.

Diagnostic: generation slows after the first request

jb95866-creator, October 22, reports “generation throughput collapse” while inference stays alive and fully GPU-offloaded. Evidence is one affected host and a separate host that did not show the same slowdown, not a universal backend regression.

Not for: insufficient-memory or runner startup failures; see ollama-memory-runner-500-context-gpu-error-triage.

Keep OLLAMA_VULKAN=1 unchanged across that comparison: the official v0.40.9 envconfig/config.go defines OLLAMA_VULKAN as the Vulkan selection setting. The value and comparison procedure follow the affected user’s reproduction; verify the actual selected GPU in the runner logs, as rick-github’s control does.

Exact environment and measurements

The affected host runs Ollama 0.40.8, Ubuntu Server 24.04.5, RX 6600 XT 8 GiB, Mesa RADV 25.2.8, Linux 6.8.0-147-generic, and bundled llama-server commit f174553e1. The reproduction uses qwen3:4b, context 4096, 64 generated tokens, and all 37 layers on the GPU (original report).

Reporter’s configurationFirst requestSecond request
Cache enabled78.50 tokens/s2.64 tokens/s
Cache disabled77.53 tokens/s78.44 tokens/s

These are generation rates reported by jb95866-creator, not WhatWorks measurements (source table).

rick-github’s October 22 control, also on 0.40.8, selected RADV GFX1151 integrated graphics and measured 78.29 then 78.56 tokens/s with LLAMA_ARG_CACHE_RAM unset. This narrows the affected-hardware evidence rather than corroborating the RX 6600 XT failure.

Reported workaround, cause and release state

jb95866-creator reports setting LLAMA_ARG_CACHE_RAM=0 in the Ollama systemd service environment and restarting the service. The runner then logs “prompt cache is disabled”; the report’s three cache-disabled requests remain near 78 tokens/s. This also disables idle-slot caching, so it does not isolate which caching mechanism causes the difference (original report, October 26 follow-up).

The author explicitly leaves the root cause unknown. The October 26 follow-up confirms configuration and reuses the original timing evidence; it does not rerun the cache-enabled failure. rick-github asks for server logs (discussion).

Fix state: #19201 was closed as not planned on 2026-11-09 (checked 2026-11-14); closure does not establish a fix. The official ollama/ollama v0.40.9 release, October 22 covers Flint availability, streaming failure reporting and coding-tool metadata; it does not claim a correction for this Vulkan cache slowdown. These sources establish no merged correction or released remedy.

Limits

One affected machine and one different-GPU control. The cache-off setting trades away prompt and idle-slot caching; its long-prompt or multi-user performance is not established here. No Windows/macOS conclusion, Mesa-specific cause, or later-version resolution follows from these reports.

Checked 2026-11-02.

Started from a post by @ollama/ollama maintainers, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Ollama: why is my second Vulkan request much slower?
Summary: One Ollama 0.40.8 RX 6600 XT report links second-request slowdown to a cache-on/cache-off difference. A separate AMD GPU kept normal speed. This describes the reported environments and the reporter’s workaround, with no released correction established (checked 2026-11-02).
Copy for agent
get the whatworks thread ollama-vulkan-second-request-cache-slowdown and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ollama-vulkan-second-request-cache-slowdown
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks