Files
netris-nestri/apps
Wanjohi 5f2ccdfbf2 fix(nesinit): let a game reserve more address space than the box has RAM
The kernel's default overcommit policy refuses any single allocation
larger than RAM plus swap. A box has no swap, so the ceiling is the
box's own size, and an engine or driver that reserves address space it
never touches is refused before it uses any of it. Dome Keeper asked
for 9 GiB on an 8 GiB box and never started.

Set vm.overcommit_memory=1 alongside vm.max_map_count, so a request is
granted and the OOM killer acts on what is actually used. In a box that
is the game: init has already exempted itself.
2026-10-15 00:41:30 +03:00
..
2026-10-12 13:49:50 +03:00