Two cores of reported CPU use could mean two tasks each have a core, or six tasks contend for two places. Nitin Ware compares three configurations of the same busy-loop workload to show what Linux Pressure Stall Information adds to an inference latency investigation.
Utilization and waiting have different denominators
CPU usage measures execution time already received. CPU PSI some measures the fraction of time at least one runnable task waits for CPU, with avg10 describing conditions on roughly a ten-second timescale. Pressure of 99% means someone was waiting almost continuously. It cannot be converted to a particular request slowing by 99%. Kubelet PSI metrics are stable from Kubernetes v1.36. The Summary API exposes usage and pressure for nodes, pods and containers, while cAdvisor exports a container waiting-seconds counter.
A and B consume the same CPU capacity. C consumes the least while retaining high pressure.
Hold the two cores fixed and add contenders
On a four-core host, the author restricted a kind worker to two CPUs and placed the control plane on the other two. One run used one pod with two busy loops. Another used three pods with two loops each. After a 60-second settling period, the author averaged twelve node pressure readings ten seconds apart. Both runs consumed 2001m, yet pressure rose from 0.33% to 99.63%. Each pod in the second run received only 616m–708m. Interpreting lower per-pod usage as reduced demand would invert the diagnosis.
Pressure with idle cores
The third run restored one pod with two loops and set a 500m CPU limit. The worker used about 0.51 cores, leaving most of its assigned capacity idle, while pressure averaged 75.23%. The container’s CFS throttling counter distinguished the cause. Once the loops exhausted their quota, they had to wait even with spare CPU available. The node percentage has another denominator: the tool counted all four host CPUs as capacity, so 2001m appeared as 50% in the first two runs.
Locating the wait
The first comparison changes the number of tasks competing for the same CPU set. The third introduces a quota. Node pressure identifies a waiting condition, while pod or container readings and throttling counters distinguish the causes. These experiments measured controlled busy loops. In a service incident, PSI identifies a resource condition to align with the latency trace. The impact on actual requests must be established from the service over the same interval.
Nitin Ware · 2026-12-01 · Beyond CPU Utilization: Using PSI to Diagnose Kubernetes Resource Contention
