[Engine] strata-host anon RSS grows ~1 GiB/h under load until global OOM (Linux, 4-GPU split)

Aperta
#7,315 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
44/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, linux

Direzione di ricerca

Start by tracing the engine memory guard and how it measures current memory; the issue does not name source files or tests. Reproduce with sustained long conversations and high prefix reuse on the reported 4-GPU setup, then sample anonymous RSS over time. Done means identifying the source of the growth and confirming a guard or cap prevents memory from reaching the machine limit.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Engine 0.1.67 (strata-engine-linux-x86_64-cuda-cuda13), terminal 0.2.21, Ubuntu 24.04, kernel 6.8.0-149, 125 GiB RAM, no swap.
Model: Qwen3.8-Flash-Next UD-IQ4_XS, --layer-split 14,26,38 over 4 GPUs (3x 5060 Ti + 5070 Ti), --resident-budget-gib 55 --kv int8 --kv-resident 32768 --max-context 262144 --conversation-cache-mib 32768 --conversation-cache-slots 8, MTP drafter on.

Observed

Two crashes, identical verdict (/var/log/journal, oom-kill):

  • 2026-11-26 19:41, after ~3 h of that boot's serving (server up since 16:38):
    Out of memory: Killed process (strata-host) total-vm:240686360kB, anon-rss:29944804kB, shmem-rss:62263064kB
  • 2026-11-27 17:09, after ~20 h uptime (since 21:11 the previous day):
    Out of memory: Killed process (strata-host) total-vm:242341388kB, anon-rss:31642468kB, shmem-rss:62282820kB

The shmem component is constant (62.28 GiB at both kills, 62.27 GiB measured on a healthy running server: pinned experts 45.2 GiB + parked conversations ~3 GiB each, parked=1..8). What grows is the engine's anonymous RSS: 9.7 GiB measured on a freshly loaded server vs 30-32 GiB at both kills, under continuous agent traffic (DSH sessions, ~100k-token conversations, high cache reuse). Total 62 + 32 + system > 125 GiB, the kernel kills the engine.

The engine's own memory guard does not see it

The guard reports at start:

strata generate: memory guard: limit 125.7 GiB (source: meminfo), current 5.0 GiB, reclaimable cache credited 0.0 GiB; available 120.7 GiB (MemAvailable 120.7 GiB), floor 2560 MiB

current stays ~5 GiB while the process anon grows to 32 GiB, and MemAvailable only counts the pressure at the moment of the check — between checks the growth is invisible, so nothing is evicted before the kernel acts.

Asks

  1. Is the anon growth known? (KV streaming buffers, MTP draft state, per-conversation structures?) 0.1.69 notes do not mention it.
  2. Could the memory guard count the process's own anon (or VmRSS) instead of its internal heap, and evict/park when the process approaches the machine limit?
  3. A knob to cap the growing structure would already help us.

Repro direction

Continuous agent traffic (long conversations, high prefix reuse) on the 4-GPU split above; slope ~1 GiB/h of anon under our load, plateau unknown (crashes first). Happy to measure with a trend sampler against a newer engine.

Lingua principale
C++
Stelle
11.6k
Fork
1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Niko1221/Strata

Tutte le issue di Niko1221/Strata

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.