Expand description
Physical memory introspection.
Modulesยง
- cgroup ๐
Linux - Linux cgroup detection utilities.
Functionsยง
- cgroup_
memory_ ๐max Linux - The RAM limit of the cgroup governing this process, if any.
- host_
memory_ ๐bytes Linux - physical_
memory_ bytes - Returns the physical memory available to this process in bytes: the
hostโs RAM, clamped by the cgroup memory limit when one is set. Both
cgroup v1 and v2 are honored, resolved through
/proc/self/mountinfoand/proc/self/cgrouprather than an assumed mount path, so containers (including host-namespace cgroup mounts) do not derive budgets from host RAM.Noneif detection fails.