Skip to main content

tree_memory_backend

Function tree_memory_backend 

Source
pub fn tree_memory_backend(
    cap_mb: u64,
    requested: Option<&str>,
    cgroup_available: impl FnOnce() -> bool,
) -> TreeMemoryBackend
Expand description

treeMemoryBackend: requested (ULTRON_RLM_TREE_MEMORY_BACKEND: auto|cgroup|watchdog|off) for a cap; “cgroup”, “auto” and anything unrecognized take a capped scope when cgroup_available says this system allows one, else the watchdog.