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

Abierto
#7,315 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
44/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, linux

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
11.6k
Forks
1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Niko1221/Strata

Todos los issues de Niko1221/Strata

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.