Skip to main content

memory_watch

Function memory_watch 

Source
pub fn memory_watch(
    config: &Config,
    limit: Option<u64>,
    default_reserve: Reserve,
) -> MemoryWatch
Expand description

How the memory watchdog watches tasks: [worker] memory_budget, else (limit − the reserve) ÷ slots, the reserve [worker] memory_reserve or default_reserve; without a budget or a limit it only measures.