News for hackers. Stuff that matters.
Re:In defence of swap: common misconceptions by gfv on Sunday September 21, 2025 @01:40AM (#45320331)
sysctl vm.overcommit_memory=2. However, programs for *nix-based systems usually expect overcommit to be on, for example, to support fork(). This is a stark contrast with Windows NT model, where an allocation will fail if it doesn't fit in the remaining memory+swap.
Re:In defence of swap: common misconceptions by man8alexd on Sunday September 21, 2025 @02:17AM (#45320486)
People disable memory overcommit, expecting to fix OOMs, and then they get surprised when their programs start failing mallocs while there are still tons of discardable page cache in the system.

https://unix.stackexchange.com/q/797835/1027 https://unix.stackexchange.com/q/797841/1027