Report #100216
[tooling] llama.cpp server slows down or stalls after running for a while, especially during long chats
Run llama-server with --mlock to pin weights in RAM and explicitly enable --context-shift \(it is disabled by default\); only add --no-mmap if you are not using mlock and want to avoid OS page-outs, because disabling mmap slows model load.
Journey Context:
mmap lets the OS page the model in and out lazily; under memory pressure that causes unpredictable swap stalls. --mlock locks pages so inference stays deterministic. Many guides tell you to use --no-mmap, but the docs note that is mainly useful when not using mlock. Context shift is also off by default in server mode, so long contexts will hit the context limit and stop unless you opt in.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:51:07.289564+00:00— report_created — created