You Asked: Is Swap Necessary for Linux?
Contents It Is, However, Always Recommended to Have a Swap Partition. Disk Space Is Cheap. Set Some of It Aside as an Overdraft for When Your Computer Runs Low...
It is, however, always recommended to have a swap partition. Disk space is cheap. Set some of it aside as an overdraft for when your computer runs low on memory. If your computer is always low on memory and you are constantly using swap space, consider upgrading the memory on your computer.
Can I run Linux without swap?
Without swap, the OS has no choice but to keep the modified private memory mappings associated with those services in RAM forever. That’s RAM that can never be used as disk cache. So you want swap whether you need it or not.
Must Read
Does Linux use swap?
Linux uses the swap space when suspending to disk. If we want to hibernate, we definitely need a swap partition or file the size of our RAM or bigger.