![]() |
MySQL 9.7.0
Source Code Documentation
|
Functions | |
| std::optional< uint64_t > | get_cgroup_memory (const std::optional< uint64_t > &self_memory, const std::optional< uint64_t > &root_memory) |
| Determine cgroup memory given memory limits from self and root cgroups. More... | |
| std::optional< uint64_t > my_system_cgroup::get_cgroup_memory | ( | const std::optional< uint64_t > & | self_memory, |
| const std::optional< uint64_t > & | root_memory | ||
| ) |
Determine cgroup memory given memory limits from self and root cgroups.
In some scenarios, it is possible to find memory limits in both self cgroup (read and parsed from /proc/self/cgroup) as well as root cgroup.
| [in] | self_memory | Memory discovered from our own cgroup |
| [in] | root_memory | Memory discovered from the root cgroup |