[GH-ISSUE #15025] CPU bound delays #9652

Open
opened 2026-04-12 22:32:34 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @v0l on GitHub (Mar 23, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15025

What is the issue?

During long sessions in opencode, i noticed that the GPU is idle waiting for something, the GPU is idle so there is some CPU process bottleneck, notice the CPU spikes (single threaded work) between GPU spikes.

Image Image

GPU: RTX Pro 6000 MaxQ
CPU: Intel Core i9-14900k
RAM: 64GB DDR5
Model: qwen3.5:122b

Relevant log output


OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.17.5

Originally created by @v0l on GitHub (Mar 23, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15025 ### What is the issue? During long sessions in opencode, i noticed that the GPU is idle waiting for something, the GPU is idle so there is some CPU process bottleneck, notice the CPU spikes (single threaded work) between GPU spikes. <img width="1253" height="422" alt="Image" src="https://github.com/user-attachments/assets/90fed92a-25b6-40fa-b9cb-fd145d71494f" /> <img width="1258" height="481" alt="Image" src="https://github.com/user-attachments/assets/e9111484-2e42-4332-b140-d7a9e0469be8" /> GPU: RTX Pro 6000 MaxQ CPU: Intel Core i9-14900k RAM: 64GB DDR5 Model: qwen3.5:122b ### Relevant log output ```shell ``` ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.17.5
GiteaMirror added the bug label 2026-04-12 22:32:34 -05:00
Author
Owner

@rick-github commented on GitHub (Mar 23, 2026):

What's the output of ollama ps?

<!-- gh-comment-id:4114210597 --> @rick-github commented on GitHub (Mar 23, 2026): What's the output of `ollama ps`?
Author
Owner

@BillionClaw commented on GitHub (Mar 24, 2026):

Looking into this — CPU-bound delays suggest a threading or processing bottleneck. I'll investigate and identify the root cause. Happy to submit a fix.

<!-- gh-comment-id:4115503639 --> @BillionClaw commented on GitHub (Mar 24, 2026): Looking into this — CPU-bound delays suggest a threading or processing bottleneck. I'll investigate and identify the root cause. Happy to submit a fix.
Author
Owner

@v0l commented on GitHub (Mar 24, 2026):

What's the output of ollama ps?

100% GPU

<!-- gh-comment-id:4116697004 --> @v0l commented on GitHub (Mar 24, 2026): > What's the output of `ollama ps`? 100% GPU
Author
Owner

@rick-github commented on GitHub (Mar 24, 2026):

Server logs will aid in debugging.

<!-- gh-comment-id:4116703631 --> @rick-github commented on GitHub (Mar 24, 2026): [Server logs](https://docs.ollama.com/troubleshooting) will aid in debugging.
Author
Owner

@v0l commented on GitHub (Mar 24, 2026):

ollama_debug.txt

Between evaluating already loaded and completion request and loading cache slot there seems to be the CPU bound work here, can be upwards of 10s of CPU bound work.

<!-- gh-comment-id:4116789752 --> @v0l commented on GitHub (Mar 24, 2026): [ollama_debug.txt](https://github.com/user-attachments/files/26209165/ollama_debug.txt) Between `evaluating already loaded` and `completion request` and `loading cache slot` there seems to be the CPU bound work here, can be upwards of 10s of CPU bound work.
Author
Owner

@rick-github commented on GitHub (Mar 24, 2026):

What client are you using? nmv, opencode.

<!-- gh-comment-id:4116987059 --> @rick-github commented on GitHub (Mar 24, 2026): ~What client are you using?~ nmv, opencode.
Author
Owner

@v0l commented on GitHub (Mar 24, 2026):

Dont seem to have the same issue running llama.cpp directly:

./build/bin/llama-server -hf unsloth/Qwen3.5-122B-A10B-GGUF:Q4_K_M -a qwen3.5:122b
<!-- gh-comment-id:4117335637 --> @v0l commented on GitHub (Mar 24, 2026): Dont seem to have the same issue running `llama.cpp` directly: ```bash ./build/bin/llama-server -hf unsloth/Qwen3.5-122B-A10B-GGUF:Q4_K_M -a qwen3.5:122b ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#9652