Constantsยง
- V1_
MEMORY_ ๐CURRENT_ PATH - V1_
MEMORY_ ๐LIMIT_ PATH - Default paths for memory limtiations and usage for cgroup v1 and cgroup v2.
- V2_
MEMORY_ ๐CURRENT_ PATH - V2_
MEMORY_ ๐LIMIT_ PATH
Functionsยง
- get_
container_ ๐memory_ limit - Returns the memory limit of a container if running in a container else returns the system
memory available.
When the limit is set to max,
system_memory_available_bytes()
will return default system memory. - get_
container_ ๐memory_ used - Returns the memory used in a container if running in a container else returns the system memory used.
- get_
system_ memory - Returns the system memory.
- get_
system_ memory_ used - Returns the used memory of the system.
- system_
memory_ available_ bytes - Returns the total memory available by the system in bytes.
- total_
memory_ used_ bytes - Returns the total memory used by the system in bytes.