Skip to main content

Module memory_limiter

Module memory_limiter 

Source
Expand description

Utilities to limit memory usage.

In the context of this module, “memory” refers to the sum of physical memory and swap space . Other parts of the code usually don’t include swap space when talking about “memory”.

Structs§

ProcStatus
Helper for reading and parsing /proc/self/status on Linux.

Functions§

apply_limiter_config
Apply the given configuration to the active limiter.
get_memory_limit
Get the current effective memory limit.
start_limiter
Start the process-global memory limiter.