In this article
Read CPU Manager as the allocation owner and distinguish its reconciled container set from per-thread affinity.
A container’s CPU set changes back shortly after an operator edits it manually. On a node using the static CPU Manager policy, kubelet reconciles assigned CPUs through the runtime. A one-time task or cgroup edit can conflict with that owner rather than reveal a mysterious model-thread affinity bug.
Establish allocation ownership
Read the node’s CPU Manager policy, effective Pod QoS and the target container’s CPU request. Under documented static-policy eligibility, Guaranteed containers with integer CPU requests can receive exclusive CPUs. Other containers can remain in the shared pool. The mere presence of the static policy does not make every model process an exclusive allocation.
Compare assignment with effective execution
Record the supported allocation evidence and the container’s effective CPU set without altering it. Thread affinity can further restrict execution within the allowed set, but it cannot legitimately create access outside the container’s enforced boundary. A parent process’s affinity display may not describe every worker thread. Keep those observation levels distinct.
Understand reconciliation
CPU Manager periodically updates runtime resources to align actual cgroup state with its in-memory assignment. A manual change can therefore be overwritten. Inspect the reconcile settings and events before repeating the edit. Treat the controller as the source of allocation truth; do not maintain an undocumented second writer that continually races kubelet.
Preserve checkpoint consistency
Policy and checkpoint changes belong to a controlled node-maintenance procedure with the documented prerequisites. Editing state while workloads run can make recorded allocation disagree with reality. A read-only diagnosis can identify the conflict without deleting state or restarting a live kubelet. Keep any later operational change separate and explicitly reviewable.
Test the supported policy
In an isolated node fixture, compare an eligible integer request with a fractional shared-pool case and observe effective assignment over reconciliation. Acceptance means the allocation and observed set match the intended policy. It does not prove freedom from interrupts, host activity or every performance interference source, and exclusive CPU assignment alone does not guarantee the model’s latency target.
Primary references
Control CPU Management Policies.
Configure Quality of Service for Pods.
Related reading: Idle GPU, throttled CPU: diagnosing container CPU quota; NUMA in GPU servers: why resource placement matters.
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.