﻿# Explain partial model-worker loss under a cgroup OOM

Reconstruct OOM scope, group policy and worker integrity even when the model supervisor survives.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-linux-oom-partial-worker-loss/
Language: en

A serving supervisor remains alive while one model worker disappears during memory pressure. Process survival does not establish workload integrity. A cgroup OOM can select a task, and group-kill policy changes whether the workload is treated together. Reconstruct the affected scope before assuming the surviving parent proves that no host-memory failure occurred.

## Identify the actual victim

Preserve kernel evidence, the worker's identity and its relationship to the surviving supervisor. A recycled PID or a new child can obscure the original victim. An application's missing-worker message is useful context but does not establish the kernel's reason. Correlate timestamps rather than inferring OOM solely from abrupt disappearance or a generic killed status.

## Establish the OOM scope

Resolve the process's actual memory cgroup and inspect its hierarchy. An OOM invoked within a memory cgroup has a documented candidate boundary; it is not a license to choose arbitrary tasks outside it. Distinguish that event from a global OOM. A currently low memory reading after the worker died can reflect released memory rather than disprove the earlier pressure.

## Read group policy and exceptions

memory.oom.group expresses whether the cgroup should be treated as an indivisible workload for OOM killing. The kernel documents protected-task exceptions. Read the effective arrangement instead of assuming that sharing a service name means all workers necessarily live or die together. A partially functioning process tree can be the observable result of the selected policy.

## Interpret score adjustment carefully

oom_score_adj affects candidate selection; it does not create RAM or make the application safe under its working-set peak. Protecting one process changes which eligible work bears the shortage. Preserve the inherited or manager-provided setting in the incident record. Avoid applying blanket protection as a repair for a model whose memory demand exceeds the intended shared budget.

## Verify integrity after recovery

In a disposable constrained workload, observe the intended group behavior and whether the supervisor detects and replaces a missing worker safely. Compare event deltas with the resulting process tree and accepted service capacity. Acceptance establishes a defined recovery contract. It does not prove every killed task was the largest consumer or guarantee correctness of a parent that continues answering after losing part of its model state.

## Primary references

[Linux Control Group v2](https://docs.kernel.org/admin-guide/cgroup-v2.html).

[OOM Killer Score Adjustment](https://man7.org/linux/man-pages/man5/proc_pid_oom_score_adj.5.html).

[Process Status](https://man7.org/linux/man-pages/man5/proc_pid_status.5.html).

Related reading: [OOMKilled or Evicted: identifying why a Pod stopped](/journal/kubernetes-oomkilled-vs-evicted/); [Container stalls without OOM: reading memory.high and memory.events](/journal/cgroup-v2-memory-high-events/).
