Skip to content

Smarter check for free memory in the Upgrader's wrapper

Quoting anonym (#8263-note_1):

In our Live system context, where a lot of stuff is in tmpfs:es, looking at the values of free or /proc/meminfo alone isn’t accurate for determining how much memory “really” is free, since the tmpfs usage is included in the buffers. Hence, MemFree is the lower (and safe) bound of how much “really” free memory we have, and MemFree + Buffers + Cache is the upper (and unsafe) bound. The true value should be (at least closer to) MemFree + Buffers + Cache - (sum of usage by tmpfs:es). We should check once against that value instead.

Related issues

Original created by @intrigeri on 10540 (Redmine)

Edited by intrigeri
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information