Skip to main content

SCOPE_SWAP_MAX

Constant SCOPE_SWAP_MAX 

Source
pub const SCOPE_SWAP_MAX: &str = "0";
Expand description

memory.swap.max for every scope: no swap at all.

memory.max alone bounds only resident pages; with memory.swap.max at the kernel default max, a tree over cgroup_memory_bytes is pushed out to swap instead of being OOM-killed and keeps growing there. Zero makes cgroup_memory_bytes the tree’s whole memory footprint, which is what the manifest field promises.