API ReferenceCpp API DocumentationHost MemoryAsk a question|Copy page|View as Markdown|More actionsSource header: cuvs/util/host_memory.hpp Types util::host_memory_info Snapshot of host and cgroup memory available to the current process. struct host_memory_info { size_t system_available; size_t available; std::optional<size_t> cgroup_limit; std::optional<size_t> cgroup_current; std::optional<size_t> cgroup_reclaimable_file; std::optional<size_t> cgroup_working_set;}; Fields NameTypeDescriptionsystem_availablesize_tHost-wide MemAvailable from /proc/meminfo.availablesize_tEffective memory available after applying any cgroup limit.cgroup_limitstd::optional<size_t>Hard limit of the most constrained cgroup ancestor, when finite.cgroup_currentstd::optional<size_t>Current usage charged to the most constrained cgroup ancestor.cgroup_reclaimable_filestd::optional<size_t>Clean file cache treated as reclaimable for capacity planning.cgroup_working_setstd::optional<size_t>Current cgroup usage after excluding reclaimable file cache.