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§

Limiter 🔒
A handle to a running memory limiter task.
LimiterConfig 🔒
Configuration for an memory limiter task.
LimiterMetrics 🔒
LimiterTask 🔒
A task that enforces configured memory limits.
ProcStatus
Helper for reading and parsing /proc/self/status on Linux.

Statics§

LIMITER 🔒
A handle to the active memory limiter.

Functions§

apply_limiter_config
Apply the given configuration to the active limiter.
start_limiter
Start the process-global memory limiter.