Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHierarchicalMemoryLimitCgroup1 ¶ added in v1.7.0
GetHierarchicalMemoryLimitCgroup1 returns hierarchical memory limit https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt
func GetMemoryLimit ¶
GetMemoryLimit returns the cgroup's (v1 or v2) memory limit, or [totalMem] if there is no limit set. If using cgroups v1, hierarchical memory limit is also taken into consideration if there is no limit set.
- https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt
- https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#memory-interface-files
func GetMemoryUsage ¶
GetMemoryUsage returns cgroup (v1 or v2) memory usage
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.