Reading Linux Pressure Stall Information to Separate CPU, Memory and I/O Saturation
Read the kernel's pressure files to see which resource is stalling a Linux host, which cgroup is responsible, and when to alert.

Underlined words are defined in the KBY Lexicon. Tap or click one to see what it means.
A high load average says a Linux host is busy, but not which resource is the bottleneck. Pressure Stall Information (PSI) answers that directly. The kernel measures the share of time that tasks are stalled on CPU, memory or I/O, and exports it as plain text under /proc/pressure/.
The constraint that shapes everything below: PSI reports time that tasks lose to a shortage, not how busy a resource is.
#The problem with utilisation figures
The kernel documentation opens with the problem. When CPU, memory or I/O devices are contended, workloads see latency spikes and lost throughput, and they run the risk of OOM kills. Without an accurate measure of that contention, administrators either under-utilise hardware to stay safe or overcommit and absorb the disruption.
Utilisation counters cannot close that gap. They show how busy a resource is, which is not the same as how much work is being delayed because of it. A memory-starved host can show moderate CPU use while its tasks spend most of their time waiting for pages, and the CPU graph gives no hint of why the service is slow.
PSI measures the delay itself. The documentation describes it as identifying and quantifying the disruption caused by resource crunches, and the time impact on workloads or entire systems. That makes it useful for sizing workloads to hardware, and for deciding whether to shed load or move a job elsewhere. If a stall is already visible, the related guides on stopping swap thrashing with OOM killer tuning and inode exhaustion cover two specific causes.
#Under the hood of the pressure files
Each resource has its own file under /proc/pressure/: cpu, memory and io. Each holds up to two lines in a fixed format, for example some avg10=0.00 avg60=0.00 avg300=0.00 total=0, with a matching full line.
The two lines mean different things, and the difference is the most useful part of PSI.
- The some line is the share of time in which at least some tasks are stalled on the resource. Work is being delayed, but the CPU may still be doing productive work for other tasks.
- The full line is the share of time in which all non-idle tasks are stalled at once. The documentation says actual CPU cycles are going to waste in that state, and that a workload spending extended time there is considered to be thrashing.
The three averages are percentages over ten, sixty and three hundred seconds. Reading them together gives a trend: a high avg10 with a low avg300 is a recent spike, while all three high describes a sustained problem. The total field is the absolute stall time in microseconds. The documentation says it exists to catch latency spikes that would not dent the averages, and to let you compute your own averages over custom windows.
One caveat applies to the CPU file. The documentation states that CPU full is undefined at the system level, but has been reported since kernel 5.13, so it is set to zero for backward compatibility. A zero on that line says nothing about CPU health, and the some line is the one to read.
#How to read the numbers without changing anything
Reading PSI changes nothing on the host. It is safe on a production server, so this is the first step before any tuning.
- Print all three files in one pass with
head /proc/pressure/*. If the files are missing, the host’s kernel does not provide PSI, and the rest of this article does not apply to it. systemd’s documentation says the kernel must be compiled with PSI support. - Start with the
someline of each file and compareavg10againstavg300. A resource whose short window is well above its long window is under a new burst of contention. - For memory and I/O, read the
fullline next. A non-zero value means every non-idle task was stalled together for that share of time, which is the state the documentation describes as thrashing. - Sample
totaltwice, a known interval apart, and subtract. The difference, in microseconds, is the stall time added in that interval, and it exposes short spikes that the smoothed averages hide.
Following along? Tap a step’s number to tick it off.
The documentation does not publish a threshold above which pressure is unhealthy. Treat any threshold as local: record what the host shows during a normal busy period and alert on departures from that baseline. systemd-oomd’s 60% default, covered below, is a kill limit for memory on one class of unit and not a general health figure.
Because the three resources interact, read them as a set. Heavy memory pressure often produces I/O pressure as pages move to and from disk, so a high I/O figure beside a high memory figure points first at memory. A CPU figure that is high on its own points at runnable tasks competing for cores rather than at storage.

#Verify which cgroup is stalling
System-wide numbers say a host is struggling but not who is responsible. On a unified cgroup v2 hierarchy, the kernel documentation says each cgroup directory has its own cpu.pressure, memory.pressure and io.pressure files, in the same format as the files under /proc/pressure/. The cgroup documentation describes cpu.pressure as accounting for all the processes in the cgroup.
The workflow follows from that. Read the system-wide file first to see which resource is under pressure. Then read the matching per-cgroup file for each service slice and compare. The cgroup with the highest some figure for that resource is a candidate, and a stall that shows only in one cgroup is a limit or a neighbour problem rather than a host-wide shortage.
This matters when the host looks healthy overall. A service confined by a memory limit can be stalling on reclaim while the host has plenty of free memory, and only the per-cgroup file shows it. The system-wide file stays flat in that case, which is why checking both is worth the extra command.
The documentation also describes cgroup.pressure, a read-write file that defaults to 1. Writing 0 disables PSI accounting for that cgroup, and the setting is not hierarchical, so descendants are unaffected.
The stated reason it exists is that PSI is accounted for each cgroup separately and aggregated at each level. That can add non-negligible overhead for some workloads under a deep hierarchy. Disabling it removes the data you would use to diagnose that cgroup, so leave it at the default unless you have measured the overhead.
#How to get woken up with a PSI trigger
Polling the files works for investigation. For continuous monitoring the kernel can wake a process when pressure crosses a threshold, which avoids a sampling loop. The documentation calls this a trigger: the maximum cumulative stall time over a specific window, such as 100ms of stall in any 500ms window.
The setup, as documented, is as follows.
- Open the pressure file for the resource, for example
/proc/pressure/memory, for read and write. - Write the trigger in the form
<some|full> <stall amount in us> <time window in us>. The documented example issome 150000 1000000, which sets a 150ms threshold for partial memory stall within a one-second window. - Wait on the open file descriptor with
select(),poll()orepoll(). The kernel’s own C example setsPOLLPRIas the event and treatsPOLLERRas the event source being gone.
Several rules follow from the documentation and are easy to trip over. Each trigger needs its own file descriptor, so every trigger needs its own open(), even on the same file. Writing a second trigger to a descriptor that already has one fails with EBUSY. The kernel accepts window sizes from 500ms to 10s. Unprivileged users can create monitors too, but their window size must be a multiple of 2s.
Notifications are rate-limited to one per tracking window, and the trigger is removed when its descriptor is closed. Nothing persists across a restart of the monitoring process, so a trigger belongs in a long-running agent that registers it at start-up, not in a one-off shell command.
#How systemd-oomd uses the same signal
The same signal drives systemd’s userspace OOM killer. Per the systemd documentation, systemd-oomd uses cgroups v2 and PSI to monitor and take corrective action before an OOM occurs in the kernel. It is enabled per unit through ManagedOOMSwap= and ManagedOOMMemoryPressure=, and it periodically polls PSI statistics for the system and for the cgroups set to kill.
The limit is read from the same figure you have just been reading. The oomd.conf documentation defines the memory pressure for this purpose as the fraction of time in a 10 second window in which all tasks in the control group were delayed, which matches the full avg10 line. DefaultMemoryPressureLimit= defaults to 60%, and the limit must be exceeded for DefaultMemoryPressureDurationSec=, which defaults to 30 seconds when unset or 0, before action is taken.
Reading PSI first gives you a way to judge those settings. If your service routinely shows a full avg10 near the limit during normal peaks, the default risks killing healthy work. The systemd documentation itself suggests a much lower limit, 40%, for something like user@$UID.service and says a higher limit such as the default of 60% may suit less latency-sensitive units such as system.slice.
The requirements are worth checking before you rely on it. The documentation lists a full unified cgroup hierarchy, memory accounting turned on for monitored units, and a kernel compiled with PSI support, available in Linux 4.20 and above. It also recommends swap, noting that without it the system enters a livelocked state much more quickly and may stop systemd-oomd from responding in time. Related tuning is covered in stopping swap thrashing with OOM killer tuning.
Only descendant cgroups can be killed, and only leaf cgroups or cgroups with memory.oom.group set to 1 are eligible. The documentation also provides a --dry-run option that logs a kill instead of performing it, and oomctl lists monitored cgroups and their pressure information.

#What goes wrong when you read PSI
Most mistakes come from treating the numbers as something they are not. The failures below follow directly from the documented semantics.
- Reading CPU
fullas health. It is always zero for compatibility, so a clean line proves nothing. Use thesomeline. - Judging by
avg300alone. A five-minute average smooths out a ten-second stall that was long enough to time out requests. Compare the windows, and sampletotalto see the real stall time. - Triggers that never fire. The monitor activates only when the system enters a stall state for that metric, and the kernel accepts only windows from 500ms to 10s. Check both before blaming the kernel.
- A write that fails with
EBUSY. The descriptor already has a trigger. Open the file again for each trigger. - A monitor that goes silent. Notifications are limited to one per tracking window, so a burst of stalls in one window produces one wake-up. Do not use the wake-up count as a measure of severity.
- Stalls in one service that the host view misses. The system-wide file averages everything. Check the per-cgroup file when a single unit is slow.
- Missing files. If
/proc/pressure/has no entries, the kernel lacks PSI. systemd-oomd also needs it, so check this before enabling the service.
#Security and access
PSI is read-only to inspect, and the kernel documentation explicitly allows unprivileged users to register monitors, with the 2s window multiple as the limit that stops one user from consuming excessive resources. That is a deliberate resource control, not a loophole, and it is a reason to keep monitoring agents running as an unprivileged service account rather than root.
Pressure data also reveals activity. A per-cgroup stall pattern tells a reader when a service is busy and what it is waiting on. Treat exported PSI metrics with the same access controls as other performance telemetry, and do not publish them to shared dashboards without checking who can see them.
Two settings change behaviour and deserve change control. Writing 0 to cgroup.pressure removes diagnostic data for that cgroup, and enabling ManagedOOMMemoryPressure=kill lets systemd-oomd send SIGKILL to every process in a cgroup. Apply the second one to a test unit first, with systemd-oomd --dry-run as the check, and agree the limit with the service owner.
#Backing out
Reading PSI needs no rollback. Each change in this article does, and each is small.
- A trigger is removed by closing the file descriptor that registered it, or by stopping the process that holds it. Nothing is stored in the kernel after that.
- Disabling cgroup PSI is undone by writing
1to the samecgroup.pressurefile. Record the original value before the change. The documented default is1. - A systemd-oomd setting is undone by restoring the previous
ManagedOOMMemoryPressure=,ManagedOOMMemoryPressureLimit=oroomd.confvalue from your configuration management and reloading. The documentation saysSIGHUPmakes systemd-oomd reload its configuration.
Before any of these, note the current state: copy the /proc/pressure/ output and the unit’s current settings into your change record, so the comparison after the change uses real figures.
#Checks before you alert on pressure
Before PSI feeds an alert or a kill decision, confirm the basics once.
- Every host in scope has
/proc/pressure/cpu,memoryandio. - You have recorded a baseline of
someandfullfigures during a normal busy period. - Alerts use
somefor CPU, and both lines for memory and I/O. - Any trigger window is between 500ms and 10s, and a multiple of 2s if the agent is unprivileged.
- Any systemd-oomd limit was set against observed
full avg10values, not copied from the defaults.
The next safe decision is to add the baseline to your runbook and set one alert on memory full avg10. It is the clearest early signal of thrashing in the documentation, and it costs nothing to read. Only after a few weeks of data should you consider letting systemd-oomd act on it. Related reading: diagnosing laptop CPU thermal throttling covers a CPU slowdown with a different cause.
About this page
Credited to
Dates
Published
Sources
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Found this useful? Follow KBY for more like it.
Related labs
Calculators and what-if tools that go with this article.
Recommended reading
More from KBY that goes with this article.
- Kubernetes error
Pod status: Failed / Reason: Evicted: Kubernetes Pod evicted by node pressure
2 min read

Education ITSet a reading-aloud task with Reading Progress in Teams, then review the recordings
7 min read
Discover more
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Engineering insights, direct to you.
Receive the latest Systems Engineering tutorials, production guides, Engineering Labs and operational best practices.
Comments
Add a thoughtful note on Reading Linux Pressure Stall Information to Separate CPU, Memory and I/O Saturation. Comments are checked for spam and held for moderation before appearing.