Skip to main content

Module pressure

Module pressure 

Source
Expand description

Pressure stall information from /proc/pressure (SRD-118 §3.7): the share of time tasks were stalled for want of CPU, memory or I/O.

Utilization says how much of a resource is in use; pressure says whether work is waiting for it. A host at 100% CPU with no pressure is busy, and one with pressure is short.

Structs§

PressureReading
The stalled share of a sample window, for the three resources. Each is a fraction of the window, 0 to 1.
PressureTotals
The three resources’ cumulative stall times.
StallTotals
Cumulative stall time for one resource, in microseconds.

Functions§

parse_pressure
The total= of the some and full lines of one /proc/pressure/<resource> file. None without a some line.
pressure_between
The stalled share of the window between two readings dt_s apart.