Files
pmaports-rtwo/main/postmarketos-zram
Clayton Craft 0f0b8ceaa2 main/postmarketos-zram: override vm.min_free_kbytes if >= 1GB RAM
Without a sufficient vm.min_free_kbytes value, the kernel may not start
reclaiming memory early enough to make use of zram swap before the
kernel OOM killer fires. Set a minimum of 100000 KB on devices with >=
1GB of RAM where the kernel's calculated value is lower.

This ignores devices with <1GB of RAM, because I think with so little
RAM isn't unlikely to really matter and if we set this too high then we
risk insta-OOMs.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8157>
2026-03-12 15:55:24 +00:00
..
2026-01-17 16:56:28 +00:00