llama.cpp prefill leaves CPU cores and memory bandwidth surprisingly idle

Dependent_Ad948 · reddit · 2026-07-30

llama.cpp CPU prompt processing appears to underuse cores and memory bandwidth

A user experimenting with CPU-only inference in mainline llama.cpp says prompt processing behaves very differently from token generation.

Observed difference

On a Xeon Ice Lake system with 24 physical cores and 8 populated memory channels:

The author reports roughly:

What they want to understand

The goal is not raw speed, but to understand why prefill seems to leave so much compute and memory throughput unused, especially when some layers are offloaded from the GPU. The post asks what the user may be missing and what concepts or tuning knobs would explain the gap.

Original post →

More from Infra

Infra channel →