mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 22:22:25 +00:00
The installed memory that sizes the image cache and the undo history is now the lower of MemTotal and the memory limit of the process's cgroups and their ancestors (memory.max under cgroup v2, memory.limit_in_bytes under v1), looked up under the cgroup mounts in /proc/self/mountinfo. A file that holds max or can't be read sets no limit.