Use it when top shows CPUs busy or load is high with high us/sy.
High CPU
High CPU means one or more processes (or the kernel) use most of the CPU time, making the system slow.
1. top — top process and us/sy/wa/st.
2. pidstat -u 1 5 — confirm over time.
3. Process logs and recent changes.
4. Short-term: renice or limit via systemd (CPUQuota=).
5. Fix the cause (bug, config, load).
workload → process uses CPU → identified → limited or fixed
For Linux Troubleshooting → High CPU, continue with the first unproven Topic check: Capture per-CPU and per-process/thread CPU during the exact slow interval. If that boundary is healthy, advance to the adjacent check: Check run queue/load, iowait, steal, interrupts/softirqs, throttling and cgroup limits. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
Healthy evidence: reproducible workload shows the responsible execution path and pressure mechanism, targeted remediation removes the bottleneck and performance recovers without hidden throttling or regression.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Capture per-CPU and per-process/thread CPU during the exact slow interval.
- Check run queue/load, iowait, steal, interrupts/softirqs, throttling and cgroup limits.
- Correlate hot threads/processes with logs, syscalls/profile evidence and workload transactions.
- Change one cause or limit, repeat workload under comparable load and verify latency/throughput plus CPU pressure.
Step 3 Commands Verify boundary
top -o %CPU
pidstat 1 5
perf top
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: only top output is sampled once, load is equated with CPU use, guest steal/cgroup throttling is ignored, or a process is killed without reproducing the trigger.
Step 5 Common mistakes Narrow the fault
- Killing the busiest process without knowing what it is.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Find the process and the kind of time: user (application work), system (kernel, often I/O or networking), steal (VM host). A runaway process or a loop after an update is common.
journalctl -b -p err— errors this bootsystemctl --failed— failed unitsdf -h; df -i— space and inodesss -tulpn— listening socketsdmesg -T | tail— recent kernel messages
ReferenceWhat it is1 section · depth on demand
Core model
Distinguish utilization from saturation and load average. Correlate per-CPU and per-thread use with runnable queues, iowait, steal, interrupts, cgroup quotas and the exact workload interval; compare against a normal baseline.
ReferenceImportant terms & boundaries4 sections · depth on demand
What this shows and what it does not
High CPU owns cross-layer CPU symptom isolation; Processes, Performance, Containers/Virtualization and application branches own specialist analysis after localization.
In depth
Utilisation vs. pressure
High CPU utilisation is not necessarily a problem; tasks waiting for CPU is. Pressure Stall Information shows that directly:
$ cat /proc/pressure/cpu
some avg10=34.12 avg60=28.40 avg300=12.03 total=914455120
$ uptime
10:41:22 up 12 days, 3:02, 2 users, load average: 11.84, 10.21, 6.30
$ nproc
8
The kernel PSI documentation defines some as the share of time at least one task is stalled waiting for the resource, with averages over 10, 60 and 300 seconds; for system-wide CPU the full line is always zero. some avg10=34 means tasks were waiting for CPU about a third of the time in the last 10 seconds.
Find the consumer and the kind of time
$ top -o %CPU # press 1 for per-CPU, H for threads
%Cpu(s): 71.3 us, 9.8 sy, 0.0 ni, 12.0 id, 5.1 wa, 0.0 hi, 1.8 si, 0.0 st
$ pidstat -u -t 5 1 # per-thread, from sysstat
$ ps -eo pid,ppid,comm,%cpu,etimes --sort=-%cpu | head
| Column | Points to |
|---|---|
us | Application code — profile the process |
sy | Kernel work for the process (syscalls, page faults, networking) |
wa | Waiting for I/O — CPU is not the bottleneck |
si / hi | Soft/hard interrupts — network packet rate, driver |
st | Stolen by the hypervisor — host contention |
Next level: where in the code
perf top -p <PID> # live hottest functions
perf record -g -p <PID> -- sleep 30 && perf report
Load average is not CPU
Load average counts runnable and uninterruptible (D state) tasks. A load of 40 on 8 CPUs with idle CPU means processes are stuck in I/O, not that the CPU is overloaded — check /proc/pressure/io and ps -eo state,pid,comm | grep '^D'.
Limits and cgroups
A service limited by CPUQuota= shows throttling, not high host CPU: systemctl show nginx -p CPUQuotaPerSecUSec and cat /sys/fs/cgroup/system.slice/nginx.service/cpu.stat (nr_throttled).
*The CPU pressure averages and per-core utilization figures are illustrative readings rather than measured host performance.*
How it works at runtime
High CPU is part of Linux Troubleshooting → High CPU. High CPU isolates sustained or burst CPU consumption to the responsible process/thread, workload, kernel path, interrupt/softirq, steal/throttling or scheduler pressure before tuning or killing anything.
Topic-specific state model. High CPU isolates sustained or burst CPU consumption to the responsible process/thread, workload, kernel path, interrupt/softirq, steal/throttling or scheduler pressure before tuning or killing anything.
Interpretation rule. - 100% of one CPU ≠ all CPUs are saturated.
- High load average ≠ CPU is necessarily the bottleneck.
- A hot process ≠ its code is the root cause; retry loops or dependency failures can drive CPU.
- Killing the process lowers CPU ≠ underlying trigger is fixed.
Method
High CPU analysis:
top -c # press 1 for per-CPU, P to sort by CPU
pidstat -u 1 5
ps -eo pid,ppid,user,%cpu,etime,cmd --sort=-%cpu | head
top -H -p <pid> # threads
perf top -p <pid>
cat /proc/<pid>/stack # kernel stack
Read top CPU states: high us = application, high sy = kernel (syscalls, networking), high wa = waiting on I/O (not CPU-bound), high st = VM steal (hypervisor contention), high si = softirq (network packets). Each points to a different next step.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. High CPU owns cross-layer CPU symptom isolation; Processes, Performance, Containers/Virtualization and application branches own specialist analysis after localization.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Troubleshooting → High CPU. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
High CPU operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for High CPU.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | High CPU isolates sustained or burst CPU consumption to the responsible process/thread, workload, kernel path, interrupt/softirq, steal/throttling or scheduler pressure before tuning or killing anything. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin symptom + exact time + host/boot/user → define scope + expected baseline → preserve original failing test → collect targeted kernel/process/service/storage/network/security/log evidence → identify first divergent boundary → make one minimal reversible change → repeat original test → verify adjacent regressions and retain before/after evidence. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture check | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | High CPU troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux troubleshooting evidence can establish this proof path: symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture check | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host, boot, process/user, dependency, time or workload scope. High CPU troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: reproduce the exact original failure, collect the owning subsystem evidence at the same time, change only the proven cause or prerequisite, then repeat the original workload and regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
High CPU · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | High CPU |
|---|---|
| Topic path | Linux Troubleshooting → High CPU |
| Runtime state | High CPU isolates sustained or burst CPU consumption to the responsible process/thread, workload, kernel path, interrupt/softirq, steal/throttling or scheduler pressure before tuning or killing anything. |
| Fast checks | - Capture per-CPU and per-process/thread CPU during the exact slow interval. - Check run queue/load, iowait, steal, interrupts/softirqs, throttling and cgroup limits. - Correlate hot threads/processes with logs, syscalls/profile evidence and workload transactions. - Change one cause or limit, repeat workload under comparable load and verify latency/throughput plus CPU pressure. |
| Verification chain | symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture check Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | High CPU troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |