memory-cap: give claude a heap ceiling of at most 3 GiB instead of 75% of the container cap
This commit is contained in:
parent
608eb9dcd9
commit
82710f4fa8
1 changed files with 17 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue