In this article
Device access, pinned-byte limits and RDMA object quotas are separate conditions; spare host memory does not prove an available QP or CQ budget.
Discovery works while object creation fails
A container lists its RDMA adapter but cannot create another queue pair or completion queue. Host RAM remains available, and increasing the container’s ordinary memory limit changes nothing. Device visibility is only one prerequisite. RDMA object accounting can impose a separate per-device quota, including limits inherited through the cgroup hierarchy. Preserve the exact failed resource operation before assuming that the adapter is inaccessible or physically unhealthy.
Separate counts from pinned bytes
The RDMA controller documentation defines limits for HCA handles and HCA objects. These count resources, rather than representing a byte budget for registered pages or model tensors. A worker can satisfy its pinned-memory allowance yet exhaust object capacity, or fail registration for a different reason while object counts remain below their limits. Record the resource type, device and creator context with the API failure; a generic out-of-resources message does not identify the controlling budget alone.
Inspect the hierarchy actually containing the process
The unified cgroup guide documents rdma.max and rdma.current in the relevant non-root groups. Follow the worker’s actual cgroup and applicable ancestors, preserving controller availability and the device identity. The reviewed kernel charging implementation traverses ancestor groups and rejects a charge that exceeds a maximum. A permissive leaf is therefore insufficient evidence when an ancestor’s shared budget is consumed by siblings. This source snapshot does not substitute for checking the installed kernel’s supported interfaces.
Creator ownership survives migration
The controller documentation explains that resources retain the creator cgroup’s accounting identity even when processes move, while later allocations can charge the new owner context. Moving a process is not automatically a migration of all its existing resource charges. Preserve creation and release generations in a leak investigation. Otherwise the new group can appear unexpectedly quiet while an old group retains live objects, and deleting a visible process record can be mistaken for complete resource cleanup.
Acceptance needs controlled allocation and release
In an isolated authorized fixture, create and release a bounded set of the relevant objects while observing applicable limits and current usage. Include a sibling consumer when testing an ancestor boundary. Verify the expected rejection, successful recovery after legitimate release and correct useful communication within the accepted budget. Do not manufacture an unlimited policy merely to make initialization pass. Acceptance demonstrates the intended resource isolation and cleanup behavior, without claiming that every object type or driver exposes identical diagnostics.
Keep other prerequisites visible
Permissions, supported device resources and registration-byte limits remain separate potential causes. The registration accounting guide covers pinned memory, while operation evidence distinguishes creation or posting failure from later transfer errors. Report the actual exhausted cgroup/device resource and its owner rather than blaming spare RAM or a visible adapter. A usable RDMA deployment requires both an accessible device and the resource budget needed by its real connection topology.
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.