Interview Prep/Linux/Load, CPU and I/O performance

A process is throttled even though the host has idle CPU, and `cpu.stat` shows a large `nr_throttled`.

IntermediateTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → The process's cgroup CPU quota (CPUQuota= or a container CPU limit) is too low for its bursty usage.

Diagnose →

systemctl show app -p CPUQuotaPerSecUSec
cat /sys/fs/cgroup/system.slice/app.service/cpu.max
cat /sys/fs/cgroup/system.slice/app.service/cpu.stat    # nr_throttled, throttled_usec

Fix → Raise the quota, or use CPUWeight= (a proportional share) instead of a hard cap for latency-sensitive services.

Prevent → Monitor throttling; size CPU limits against peak usage, not average.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance