Skip to main content

Module oom

Module oom 

Source
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
8192 as 8 GB, 1536 as 1.5 GB, 256 as 256 MB.
note_in_pane
Writes the pane row for an OomEvent of the pane block_id.
parse_oom_kill
The oom_kill value in the text of memory.events / memory.oom_control.