3 ms·
But if you suddenly need it and don't have it, you'll get segfaults (I assume). Sounds a bit too dangerous for me :p
by qiqitori 6y ago
But if you suddenly need it and don't have it, you'll get segfaults (I assume). Sounds a bit too dangerous for me :p
- NavinF 6y agoYou'll get OOM killed as if you ran out of RAM. This doesn't happen unless the program is buggy. Moreover, if your working set is larger than RAM, you're screwed regardless. So don't do that. Swap exists so you can use more RAM for the disk cache. It's doesn't exist so that buggy programs can crawl instead of dying
- xyzzy_plugh 6y ago> if your working set is larger than RAM, you're screwed regardless. I mean, this is patently false. I've used 1TB swapfiles to get out of a sticky situation with some terrible research software that used a ton of memory to solve really valuable problems. There's nothing wrong with an absolute shit ton of swap when the alternative is OOM.