TECHNOLOGY

Serving worker memory: RSS sums, proportional pages and cgroup charge differ

In this article
THE QUICK TAKE

Name the memory accounting boundary before comparing a supervisor, worker group and cgroup total.

The diagnostic situation

A supervisor process reports modest resident memory, while its serving cgroup approaches the memory limit. Another dashboard sums worker RSS and reports more memory than expected. These readings need not contradict each other. The supervisor excludes children, shared mappings can appear in several resident sets, and cgroup accounting has its own hierarchy and charged-memory scope.

Why the observation changes meaning

Linux proc documentation distinguishes RSS from proportional set size, which apportions shared pages among mappings or processes according to documented accounting. The cgroup memory.current field describes memory used by the group and descendants. Neither is a universal unique physical footprint of model weights. Page cache, shared mappings, kernel accounting and special allocation cases can make simple equality expectations invalid.

Define the instrumentation contract

Define whether the question concerns an individual process, the intended worker group or a memory-enforcement boundary. Record process identity with lifetime information and actual cgroup membership. Label RSS, PSS and charged bytes separately with their units. Do not call a summed process value GPU memory or whole-machine consumption simply because the model executes on that host.

A bounded verification procedure

In an isolated worker configuration, enumerate the supervisor and its expected children. Observe their memory and group membership near the same boundary, noting collection skew. Include a shared file mapping and a child that exits or restarts as controlled cases. Compare the resulting accounting views without requiring them to equal quantities they were not designed to represent.

Evidence required for acceptance

Acceptance evidence includes the process tree, cgroup hierarchy, measurement interfaces, timestamps and units. Explain which tasks and descendants each total covers. Preserve inaccessible process readings separately from zero usage. When comparing releases, keep accounting method stable; switching from supervisor RSS to group charge can create an apparent regression even if the physical workload has not changed.

Failure cases and limits

Proportional accounting has documented approximation and allocation caveats, and permission restrictions can limit observation. These measurements also do not establish the peak between samples or prove an OOM cause. This protocol validates the scope of memory reporting. Kernel event evidence, allocator-specific memory and functional worker integrity remain separate investigations when a process disappears or serving capacity falls.

Name the memory accounting boundary before comparing a supervisor, worker group and cgroup total. Linux proc filesystem memory accounting; Linux cgroup v2 resource controls.

The proposed investigation of worker memory rss pss cgroup is not an executed deployment benchmark. Related reading: Explain partial model-worker loss under a cgroup OOM; GPU monitoring without excess charts: five observation levels.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles