Skip to main content

detect_cgroup_psi

Function detect_cgroup_psi 

Source
pub fn detect_cgroup_psi() -> bool
Expand description

Detect whether cgroup-scoped PSI pressure files are available.

Returns true if /sys/fs/cgroup/io.pressure exists and is readable, indicating cgroup2 with PSI enabled. The cgroup PSI files use the same format as /proc/pressure/* but are scoped to the process’s cgroup.