Skip to main content

detect_memory_high

Function detect_memory_high 

Source
pub fn detect_memory_high() -> Option<u64>
Available on crate feature memory only.
Expand description

Soft throttle ceiling: cgroup v2 memory.high.

The kernel begins aggressive reclaim and allocation throttling here, before the hard memory.max OOM-kill, so an app that sheds before memory.high avoids the throughput cliff. None when unset (max) or not cgroup v2.