Module memory

Source

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.