Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Resource Monitoring

Direct answer

Resource monitoring measures CPU, memory, disk I/O and load to tell whether a resource is busy, saturated or failing, using tools such as top, vmstat, free, iostat, sar and pidstat.

When to use this

Use it as the entry point when a Linux system is slow or close to its limits.

First 30 seconds

1. uptime — load vs nproc?

2. vmstat 1 — r column > CPUs? si/so? wa?

3. free -h — available memory.

4. iostat -xz 1 — await and %util.

5. Compare with history (sar) and identify the process.

Operational verification

workload → CPU, memory, disk and network use → saturation found → process identified

Evidence · next step

For Resource Monitoring, continue with the first unproven Topic check: Pin host/VM, workload, incident interval and a known-good baseline before reading counters. If that boundary is healthy, advance to the adjacent check: Capture CPU, run queue/load, memory/swap/reclaim and disk latency/queue metrics over the same timestamps rather than one isolated sample. 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
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux · Ceph / ZFS / LVM / Linux filesystems and backup systems
Key commandiostat -xz 1 3
Scope / prerequisiteUse it as the entry point when a Linux system is slow or close to its limits.
Verify · 2Reference · 6
What next?3 suggested next steps
Child topics (this level)4
Catalog command links8
Evidence2
On this pageJump to a specific section
Linux command reference

Primary Commands

Configuration and operational commands for this Topic.

freeVerify
free

Report physical memory and swap totals, use, availability and cache accounting.

Use when: Primary lookup intent: troubleshoot. Use free when the lookup goal is to report physical memory and swap totals, use, availability and cache accounting. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. free is documented as an operational lookup primitive under Resource Monitoring. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · mixed
uptimeVerify
uptime

Show system uptime, logged-in user count and recent load averages.

Use when: Primary lookup intent: troubleshoot. Use uptime when the lookup goal is to show system uptime, logged-in user count and recent load averages. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. uptime is documented as an operational lookup primitive under Resource Monitoring. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · mixed
vmstatReference
vmstat

Sample process, memory, paging, block I/O, interrupt and CPU scheduler counters.

Use when: Primary lookup intent: troubleshoot. Use vmstat when the lookup goal is to sample process, memory, paging, block I/O, interrupt and CPU scheduler counters. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. vmstat is documented as an operational lookup primitive under Resource Monitoring. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · mixed
iostatReference
iostat

Report CPU utilization and per-device I/O throughput, queueing and latency counters.

Use when: Primary lookup intent: troubleshoot. Use iostat when the lookup goal is to report CPU utilization and per-device I/O throughput, queueing and latency counters. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. iostat is documented as an operational lookup primitive under Resource Monitoring. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · mixed
sarReference
sar

Read or collect historical system activity counters across CPU, memory, I/O and networking.

Use when: Primary lookup intent: troubleshoot. Use sar when the lookup goal is to read or collect historical system activity counters across CPU, memory, I/O and networking. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. sar is documented as an operational lookup primitive under Resource Monitoring. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · mixed
lsofReference
lsof

List open file descriptors and the processes, files, sockets or devices associated with them.

Use when: Primary lookup intent: troubleshoot. Use lsof when the lookup goal is to list open file descriptors and the processes, files, sockets or devices associated with them. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. lsof is documented as an operational lookup primitive under Resource Monitoring. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · mixed
dmesgReference
dmesg

Read or control the kernel ring buffer used for boot, driver and runtime kernel messages.

Use when: Primary lookup intent: troubleshoot. Use dmesg when the lookup goal is to read or control the kernel ring buffer used for boot, driver and runtime kernel messages. Tie the result to the same host, namespace, user identity and time window as the symptom.

Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. dmesg is documented as an operational lookup primitive under Resource Monitoring. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.

Linux · mixed
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

7 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

workload symptom + time window → host/cgroup scope → CPU/run queue + memory/reclaim + block I/O latency/queue → process/kernel attribution → first saturated/contended boundary → corrective change → original workload verification

Healthy evidence: metrics remain within workload-specific baseline/tolerance, queues and latency are bounded, no sustained reclaim/thrash or device saturation appears, and the original workload meets its acceptance target.

Step 2 Operational verification Verify boundary

Processes, CPU, memory, load, I/O and evidence for identifying Linux resource bottlenecks.

Fast verification

  • Start with load, CPU, memory and run-queue state (uptime, top, free, vmstat).

- Add iostat -x for storage pressure and ss for connection pressure when relevant.

- Compare sustained utilization and latency; a single high CPU sample is not a root cause.

Step 3 Commands Verify boundary
top
vmstat 1 5
iostat -xz 1 3
free -h
uptime
Step 4 Verification and output interpretation Verify boundary

Verification path. Establish a time window and correlate CPU, run queue, memory pressure/reclaim/swap, block latency/queueing and kernel/hardware events. Identify which PID/cgroup/device owns the load before tuning. Compare rates and trends instead of one instantaneous sample. For modules/hardware, verify driver binding, firmware, device state and errors. A benchmark or original workload transaction after change is required to show the user-visible objective improved rather than merely moving a metric.

Existing fast checks for this Topic. - Pin host/VM, workload, incident interval and a known-good baseline before reading counters.

  • Capture CPU, run queue/load, memory/swap/reclaim and disk latency/queue metrics over the same timestamps rather than one isolated sample.
  • Attribute abnormal signals to processes, cgroups, devices, interrupts or kernel wait states and identify the first resource boundary that diverges from baseline.
  • Change one demonstrated cause or workload condition, then repeat the original workload while confirming the resource signal and downstream service result both recover.

Verification chain. workload symptom + time window → host/cgroup scope → CPU/run queue + memory/reclaim + block I/O latency/queue → process/kernel attribution → first saturated/contended boundary → corrective change → original workload verification

Step 5 Common mistakes Narrow the fault
  • Reading a single snapshot instead of trends.
  • Treating used memory including cache as a problem.
Step 6 Failure modes and next checks Narrow the fault

Suspicious evidence: sustained run queues, steal/IRQ pressure, reclaim or swap thrash, I/O await/queue growth, blocked tasks, sharp percentile latency increase or metrics that correlate directly with the workload failure.

It does not show behavior outside the captured host/VM, boot, incident interval, namespace/cgroup, process, device, kernel/driver or workload scope. Resource pressure is confirmed only when a time-correlated metric is tied to the workload and attributed to a concrete process, cgroup, device or kernel wait boundary; a single percentage, load value or dashboard color is insufficient.

Next check: Continue from the first unproven resource/kernel boundary: preserve the exact incident scope, capture the adjacent process/cgroup/device/driver or subsystem state, change only the demonstrated cause, then repeat the original workload and regression checks.

Step 7 Where it fails Narrow the fault

Walk hardware/kernel capability → scheduler/mm/device → cgroup/namespace → process/thread → service/runtime → workload behavior/counters and stop where observed state diverges.

Evidence references

Evidence · 2 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1command output · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Utilisation alone does not prove a bottleneck — look for saturation (run queue, swap activity, I/O wait and latency). Keep history (sysstat's sar or a monitoring system) to compare with normal.

Key checks
  • uptime — load averages
  • vmstat 1 5 — run queue, swap, I/O wait
  • free -h — available memory
  • iostat -xz 1 3 — disk latency and utilisation
  • sar -u -r -d — history (sysstat)
ReferenceWhat it is3 sections · depth on demand

Operational scope

Processes, CPU, memory, load, I/O and evidence for identifying Linux resource bottlenecks.

What it is

Processes, CPU, memory, load, I/O and evidence for identifying Linux resource bottlenecks.

Core model

Start with an exact symptom window and workload baseline, then identify CPU topology, runnable tasks, memory pressure, swap/reclaim, block-device latency/queueing and load composition. Prefer multiple correlated samples over one snapshot, distinguish utilization from saturation and queueing, and always map the resource signal back to the process, cgroup, device or kernel boundary that can explain the workload impact.

ReferenceWhy it matters2 sections · depth on demand

When to use it

Use Processes & Performance when the problem concerns Linux runtime, services, networking, identity, packages, storage or shell automation.

Why it matters operationally

The useful outcome is not simply knowing a definition; it is being able to decide whether Processes & Performance is healthy, misconfigured, missing, or only a symptom of a failure somewhere else.

ReferenceHow it works1 section · depth on demand

How it works

Processes, CPU, memory, load, I/O and evidence for identifying Linux resource bottlenecks.

ReferenceImportant terms & boundaries4 sections · depth on demand

What this shows and what it does not

Resource pressure is confirmed only when a time-correlated metric is tied to the workload and attributed to a concrete process, cgroup, device or kernel wait boundary; a single percentage, load value or dashboard color is insufficient.

In depth

Resource monitoring: reading top

top is the first tool most administrators open on a busy system. Its header alone answers several questions. The top(1) manual page describes the summary area:

  • The first line shows the uptime, the number of users, and the load averages over 1, 5 and 15 minutes.
  • The Tasks line counts running, sleeping, uninterruptible (D), stopped and zombie processes.
  • The CPU line splits time into us (user), sy (kernel), ni (niced), id (idle), wa (waiting for I/O), hi and si (hardware and software interrupts), and st (stolen by the hypervisor).
  • The memory lines show total, free, used and buff/cache. "avail" is the estimate of memory available for new programs without swapping.

Per-process columns

ColumnMeaning
VIRTAll virtual memory, including mapped but unused memory
RESPhysical memory in use (not swapped)
SHRThe part of RES that may be shared with other processes
%CPUCPU share since the last update (can exceed 100 % for multi-threaded processes)
%MEMRES as a share of physical memory
SState: R, S, D, T, Z

Interactive keys (manual)

KeyEffect
1Show each CPU separately
P / MSort by CPU / memory
cFull command lines
HShow threads
kSend a signal to a process

What the header tells you

ObservationPoints to
High waStorage is the bottleneck
High stThe hypervisor is short of CPU (noisy neighbours)
High syKernel work: system calls, networking, locking
High siHeavy network packet processing
Low "avail" with swap in useMemory pressure
Many processes in DWaiting on storage or NFS
host$ top -b -n 1 | head -12
top - 16:20:31 up 2 days,  4:49,  2 users,  load average: 6.12, 5.80, 4.10
Tasks: 412 total,   3 running, 404 sleeping,   0 stopped,   5 zombie
%Cpu(s): 12.4 us,  3.1 sy,  0.0 ni, 41.2 id, 42.9 wa,  0.0 hi,  0.4 si,  0.0 st
MiB Mem :  31842.1 total,    612.4 free,  12210.3 used,  19019.4 buff/cache
MiB Swap:   8192.0 total,   8190.1 free,      1.9 used.  19210.8 avail Mem
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
   1311 postgres  20   0 8812332   6.1g   6.0g D  14.2  19.6  41:22.10 postgres
host$ top -b -n 1 -o %MEM | sed -n '7,10p'
host$ pidstat -u -d 1 5 | tail -6

Reading the header

The load is 6, yet 41 % of CPU time is idle, and 43 % is spent waiting for I/O. The main process is in D state. The CPUs aren't the bottleneck. Storage is, and iostat -x is the next step. Plenty of memory is available, so swapping isn't involved.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

Resource Monitoring is part of Resource Monitoring. Linux Resource Monitoring is the operational reference for separating CPU, memory, storage-I/O and load pressure from application symptoms by correlating time-bounded host telemetry with the exact workload and incident window.

Runtime state ownership and mechanics. Kernel and resource observations combine scheduler run queues, CPU time, memory reclaim/page cache, virtual memory, block I/O, device drivers, interrupts and hardware error reporting. Load average is runnable plus uninterruptible work, not CPU percentage. /proc and /sys are exported runtime interfaces whose fields can be architecture/kernel-version specific. Modules extend the running kernel but depend on ABI/signature/configuration and device binding.

Topic-specific state model. Linux Resource Monitoring is the operational reference for separating CPU, memory, storage-I/O and load pressure from application symptoms by correlating time-bounded host telemetry with the exact workload and incident window.

Technical metadata. Host/VM, distribution, boot ID, kernel release, CPU topology, cgroup/namespace, workload/process/thread, CPU user/system/idle/iowait/steal + run queue/load, memory available/reclaim/swap/fault/OOM, block device/LV/MD latency/queue/throughput, PCI/USB/DMI identity, module/driver/parameters, procfs/sysfs path, kernel logs and original workload result.

Interpretation rule. - High utilization ≠ saturation; a resource can be busy without delaying the workload.

  • Low average utilization ≠ absence of short bursts or per-core/per-device hotspots.
  • Load average ≠ CPU percentage; runnable and uninterruptible tasks can both contribute.
  • A monitoring tool reporting normal values ≠ the original workload is healthy outside the captured interval or namespace/cgroup scope.

Limits and how it fails

Primary failure point. Resource pressure is confirmed only when a time-correlated metric is tied to the workload and attributed to a concrete process, cgroup, device or kernel wait boundary; a single percentage, load value or dashboard color is insufficient.

Model. High load can be I/O wait or blocked tasks with modest CPU utilization. “Free memory” is not the same as available memory because Linux uses cache aggressively. A loaded module does not show device binding or correct firmware. sysfs/proc values are runtime interfaces, not always persistent configuration. Hardware errors can surface as filesystem/network/application symptoms. Keep resource symptom, kernel mechanism, device state and workload result separated.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Configuration intent and lifecycle. Kernel tuning should start from a measured constraint and use documented sysctl/module parameters or subsystem interfaces with persistent ownership under /etc/sysctl.d, modprobe.d or distribution tooling. Avoid cargo-cult tuning copied from unrelated workloads. Hardware/driver changes may require initramfs or reboot. Resource limits can also come from cgroups/systemd, containers, ulimit and application settings, so system-wide kernel tunables are not always the correct control point.

Distribution/platform context. Resource Monitoring owns host-level CPU, memory, disk and load interpretation. Processes owns process state; Storage owns deeper device/filesystem faults; Linux Networking owns network dataplane behavior; application Topics own service-specific acceptance.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Resource Monitoring. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://gitlab.com/procps-ng/procps · confidence 94%
Technical changelog & impact

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.

Terminology layer

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.

Aliases that resolve here
linux resource monitoringprocesses & performancelinux performance counterslinux processes & performancecpu memory disk monitoring linuxProcesses & Performance troubleshootinglinux load monitoring
Embedded reference data

Quick lookup tables

Resource Monitoring operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Resource Monitoring.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateLinux Resource Monitoring is the operational reference for separating CPU, memory, storage-I/O and load pressure from application symptoms by correlating time-bounded host telemetry with the exact workload and incident window.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin exact symptom + interval → identify host/VM, workload and authoritative kernel/device/resource scope → capture correlated runtime telemetry/state → attribute the abnormal signal to process/cgroup/device/driver → find first failed boundary → change one demonstrated cause → read back effective state → repeat original workload + regression check.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainworkload symptom + time window → host/cgroup scope → CPU/run queue + memory/reclaim + block I/O latency/queue → process/kernel attribution → first saturated/contended boundary → corrective change → original workload verificationTrace requested/configured state through effective state to the observed workload result.
Failure boundaryResource pressure is proven only when a time-correlated metric is tied to the workload and attributed to a concrete process, cgroup, device or kernel wait boundary; a single percentage, load value or dashboard color is insufficient.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux resource/kernel evidence can establish this proof path: workload symptom + time window → host/cgroup scope → CPU/run queue + memory/reclaim + block I/O latency/queue → process/kernel attribution → first saturated/contended boundary → corrective change → original workload verificationUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured host/VM, boot, incident interval, namespace/cgroup, process, device, kernel/driver or workload scope. Resource pressure is proven only when a time-correlated metric is tied to the workload and attributed to a concrete process, cgroup, device or kernel wait boundary; a single percentage, load value or dashboard color is insufficient.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven resource/kernel boundary: preserve the exact incident scope, capture the adjacent process/cgroup/device/driver or subsystem state, change only the demonstrated cause, then repeat the original workload and regression checks.Continue to the next unresolved boundary while preserving the original test condition.

Resource Monitoring · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryResource Monitoring
Topic pathResource Monitoring
Runtime stateLinux Resource Monitoring is the operational reference for separating CPU, memory, storage-I/O and load pressure from application symptoms by correlating time-bounded host telemetry with the exact workload and incident window.
Fast checks- Pin host/VM, workload, incident interval and a known-good baseline before reading counters. - Capture CPU, run queue/load, memory/swap/reclaim and disk latency/queue metrics over the same timestamps rather than one isolated sample. - Attribute abnormal signals to processes, cgroups, devices, interrupts or kernel wait states and identify the first resource boundary that diverges from baseline. - Change one demonstrated cause or workload condition, then repeat the original workload while confirming the resource signal and downstream service result both recover.
Verification chainworkload symptom + time window → host/cgroup scope → CPU/run queue + memory/reclaim + block I/O latency/queue → process/kernel attribution → first saturated/contended boundary → corrective change → original workload verification Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary.
Failure boundaryResource pressure is proven only when a time-correlated metric is tied to the workload and attributed to a concrete process, cgroup, device or kernel wait boundary; a single percentage, load value or dashboard color is insufficient. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?