mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
host_available_memory (the probe behind --resident-experts, --resident-budget-gib and the arena's RAM check) returned false on two cgroup v2 shapes that carry no problem for the memory itself, and the engine then read every expert from the files (--mmap-experts) with RAM free: - a group in the process's chain that has no memory.max (the memory controller is not switched on for it, as for many desktop session scopes): it counts as no limit of its own now, and the groups above it are still read; - a container whose /proc/self/cgroup names the host's path while /sys/fs/cgroup is its own group (no cgroup namespace): the path is not in the mount, so the mount's root is read as the process's own group (on a real v2 host the root has no limit, MemAvailable alone). An unreadable or malformed limit still fails, and the failure now names what could not be read (HostMemory::why), appended in brackets to the three "cannot determine available memory for ..." messages (the texts keep their start). Test: file_expert_source_test (test_host_memory): a controllerless child, the parent's limit above it, a path outside the mount with and without a limit on the mount's root, an unreadable memory.max. The cases that expected a failure for the first two shapes are replaced.