Remix.run Logo
man8alexd 3 hours ago

FreeBSD didn’t have memory overcommit and instead used strict swap reservation - each allocated anonymous memory page was supposed to have a corresponding swap page. This required 2x RAM swap space, otherwise you would get “out of swap” when forking a large process. FreeBSD implemented memory overcommit around 2000.

jandrese 3 hours ago | parent [-]

Oh, so that's where that old nugget of wisdom came from! I've heard the rule about making your swap at least 2x your RAM for ages and thought it was just some old rule of thumb from the 80s. I didn't know there used to be a legitimate reason for it.

man8alexd 3 hours ago | parent [-]

See this retrocomputing.SE question https://retrocomputing.stackexchange.com/questions/32492/ori...