Resource limits and pressure inside a container 00:00:01 When the container runs out of headroom Each of Sam's workers behaves on its own. Put the two together and the service stalls, although both remain alive. The children share a parent resource group. That group's ceiling applies to their combined work. During ten seconds of normal work, the measured memory stalls add up to twenty milliseconds. In the busy interval the same counter rises by eighteen hundred milliseconds. A process can lose time to reclaim without ever being killed. A cgroup accounts for a set of processes and can enforce limits on their combined resource usage. On cgroup v2 a memory.high threshold can trigger reclaim and throttling, while memory.max sets a hard boundary. 00:00:45 Follow charges from a child group to its parent Pressure stall information measures time lost waiting for resources. It reveals harm that a large byte count alone cannot quantify. Compare this with a different controller. A CPU allowance of twenty milliseconds in every hundred-millisecond period buys one fifth of a core on average. Tasks that run at the same time share and can quickly spend that budget. Once its CPU budget runs out, a group can be throttled even on an otherwise idle host. The budget renews in the next period. That predicts CPU throttling. Sam instead observes memory stalls, so he turns back to reclaim and the memory limit shared by both workers. 00:01:29 Watch pressure before a process dies If the worker's own limit looks generous, which boundary should Sam inspect before raising that limit? Walk up the resource hierarchy. Compare the shared parent's current charge and ceiling, then inspect memory pressure and event deltas over the slow interval. Here the combined working set creates pressure. Limiting simultaneous workers tests that explanation directly. If memory stalls and events stay flat, look for CPU throttling or downstream I O queues within the same workload. 00:02:00 Test the combined working set At the same offered load the ten-second stall interval now contains forty-five milliseconds. Cgroup v1 can mount controllers in different hierarchies. V2 coordinates enabled controllers in a unified hierarchy. File names and semantics may differ between them. Sam also checks completion rate so lower pressure cannot hide abandoned work. A limit has a scope and a stall has a duration.