Watch
0
0
Fork
You've already forked hyperhive
0

memory-cap: give claude a heap ceiling of at most 3 GiB instead of 75% of the container cap

This commit is contained in:
damocles 2026-11-27 17:08:19 +01:00 • committed by mara
commit 82710f4fa8

View file

@ -480,7 +480,7 @@ the last drop-in because it can't read the swarm caps file,
the file carries that drop-in's `MemoryMax=`.
At boot the container derives two values from a byte count:
`BUN_JSC_forceRAMSize` (75%, claude-code's heap ceiling) and
`BUN_JSC_forceRAMSize` (75%, but at most 3 GiB: claude-code's heap ceiling; it's a per-process hint while the agent's claude and every subagent's share one cap, so a share that grows with the cap would let a few processes together pass it) and
`HIVE_RUNS_MEMORY_HIGH` in `hive-subagent-daemon`'s and `hive-bash-daemon`'s
environment (two thirds each). Each daemon writes it to `memory.high` of the
cgroup node its runs live in, so a build storm throttles before the