Swap isn’t unlimited, it just delays the inevitable and makes everything slow while doing it. A 4GB swap partition isn’t going to save you if you run your 32GB computer out of memory.
Swap isn’t unlimited, it just delays the inevitable and makes everything slow while doing it. A 4GB swap partition isn’t going to save you if you run your 32GB computer out of memory.
Who the hell would set 4Gb swap for a 32Gb RAM machine in 2025?
A guy with a decade old 64Gb SSD as the only drive in the system?
> and makes everything slow while doing it
It was so when the OS was on a HDD. Nowadays it's a PCIe device with 1 million IOPS.
And five years ago fans of some fruit company run around singing praises on how good their brand new laptops worked with a mere 8Gb of RAM.
It does help. It gives time for the kernel in this situation and also helps in general by allowing to defragment memory. You want to keep a small amount of swap space at all times.