[Engine] strata-host anon RSS grows ~1 GiB/h under load until global OOM (Linux, 4-GPU split)
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 44/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- cpp, linux
- 领域
- backend, performance
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- Is the anon growth known? (KV streaming buffers, MTP draft state, per-conversation structures?) 0.1.69 notes do not mention it.
- 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?
- 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.
- 主要语言
- C++
- 星标
- 11.6k
- 派生
- 1k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Niko1221/Strata 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
Niko1221/Strata#7365 · 2 条评论 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 4 天内回复
-
[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chip未关闭
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 4 天内回复
-
[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)未关闭
难度 2/5 1-3 小时 新手友好度 72/100
Niko1221/Strata#7276 · 1 条评论 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
Niko1221/Strata#7230 · 1 条评论 ·
维护者通常 4 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs first未关闭
难度 2/5 1-3 小时 新手友好度 72/100
Quantinuum/tket#2282 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 84/100
KhronosGroup/Vulkan-Tutorial#555 ·
维护者通常 10 天内回复
-
Server crashes when a mob dies to poison可能已有人在做 @joelstiller 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
DarkCastleMUD/DarkCastle#305 ·
维护者通常 1 天内回复
-
[Issue]: RAS status report lists the wrong pids for an outlier node可能已有人在做 @bhargavchintam 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 2 天内回复