Ubuntu 18.04 running on a system with 4GB of RAM
Ubuntu 18.04 running on a system with 4GB of RAM
It's primarily about maintaining safety. I don't enable swapping by default on my system, but I do when necessary, such as during compilation of complex tools like Chrome or LLVM. The purpose is to provide overflow capacity when required. If you're concerned about wasting significant storage space on unused data, avoid partitions and instead use a swap file. This allows safe expansion or reduction without risk. Previously, there was a "1xRam minimum" for hibernation; it's unclear if this still applies, so you might want to check if you plan to hibernate.
You might want to create a swap file, but I wasn’t able to find the steps (I was focusing on other tasks).