Expand description
Telling a container agent’s user that something in the container was stopped for going over its memory limit,
instead of a bare exit 137. docs/specs/SPEC_CONTAINER_AGENT_RESOURCE_LIMITS_2026_10_29.md §5.
The evidence is the container cgroup’s own oom_kill counter (memory.events on cgroup v2, memory.oom_control on
v1): read when a turn starts and again when it ends, a rise means the kernel killed a process in this container in
between. An exit code of 137 alone is not proof (a stop is SIGKILL too), and the usual victim is not the turn but a
child of the CLI, such as the cargo of a Bash tool, so the turn can end cleanly and still have been hit.
Structs§
- OomEvent
- A process of the container was killed for memory during a turn.
Functions§
- explain_
failure - What the failure of a turn that ended by SIGKILL says when memory was the cause.
- memory_
text 8192as8 GB,1536as1.5 GB,256as256 MB.- note_
in_ pane - Writes the pane row for an
OomEventof the paneblock_id. - parse_
oom_ kill - The
oom_killvalue in the text ofmemory.events/memory.oom_control.