Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use RAMdisk based on available memory instead of free memory (#1463)
Resolves #1461 Based on `man free` it is more appropriate to use the metric for available memory instead of free memory, when deciding whether to use the RAMdisk for TinyPilot installation/update. > free Unused memory (MemFree and SwapFree in /proc/meminfo) > ... > available: Estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use (MemAvailable in /proc/meminfo, available on kernels 3.14, emulated on kernels 2.6.27+, otherwise the same as free) <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1463"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a>
- Loading branch information