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§
- Proc
Status - Helper for reading and parsing
/proc/self/statuson 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.