GuideCPU usage is low and the container is slow. Is it throttled?
A container under a CPU limit can be made to wait while the machine has CPUs to spare.
A CPU limit is a budget per period. A process that spends its budget early waits for the next period, however idle the node is. Usage looks moderate; the process is slow.
Step 1: read the limit
cat /proc/PID/cgroup
mount -t cgroup2
GROUP below is the process’s control group. In /proc/PID/cgroup, the cgroup v2 entry has the hierarchy ID 0 and an empty controller list; its last field is the group’s path, relative to the mount point that the second command prints.
cat /sys/fs/cgroup/GROUP/cpu.max
The file holds two numbers, $MAX $PERIOD: the group may consume up to $MAX in each $PERIOD. The default is max 100000, which is no limit. A value such as 50000 100000 is half a CPU.
On Kubernetes this is the container’s CPU limit; its documentation says CPU limits are enforced by throttling, and that a limit of 500m is half a CPU.
Step 2: see whether it is being throttled
cat /sys/fs/cgroup/GROUP/cpu.stat
Read three lines: nr_periods, nr_throttled and throttled_usec. Take two readings a few seconds apart and subtract. The share of periods throttled is the change in nr_throttled over the change in nr_periods; the time lost is the change in throttled_usec.
The kernel documentation notes that these figures count only throttling caused by this group’s own limit. A limit on a parent group shows in cpu.stat.local.
Step 3: see what it costs
cat /sys/fs/cgroup/GROUP/cpu.pressure
This is pressure stall information for the group: the share of time its tasks were stalled for want of CPU. Throttled time and CPU pressure rising together, on a node whose own /proc/pressure/cpu is quiet, points to the limit rather than a busy machine.
Why usage looks low
Usage is an average over the period you chart. A process with many threads can spend a period’s budget in a fraction of it, then wait. Averaged over a minute, that can be a container at half its limit that is throttled in most periods.
What this cannot tell you
Why the process wanted that much CPU. It may simply need a larger limit. It may be spending CPU because another resource is short, for example reclaiming memory. Throttling shows the limit was hit; it does not show what drove the process into it.
Where Commotion begins
Every step above is done by hand, on one machine, while the incident is still happening. Commotion makes the judgement for every process on the node, each second: it judges a process on measured waiting, not on usage, and names which of CPU, memory, disk or network is at the root, with the measurement that proves it.
It runs beside the monitoring you already have. Read one incident, or see what Early Access involves.
Checked on 3 December 2026 against: Kernel documentation: control group v2, cgroups(7), Kubernetes: resource management for pods and containers, Kernel documentation: PSI, pressure stall information. Command output differs between versions; read your own manual pages.
Stop guessing the cause from graphs.
Sign-up is not open yet; write to commotion@littlebit.in to ask about a trial.