I'm wondering whether I really need to use Swap or ZRam when I have 128GB of RAM that I rarely fill up. I've seen a lot of different opinions on this topic and would appreciate a clear answer about whether I should enable or disable it. Currently, I have a Swap size of 128GB, the same as my RAM, but it seems like a waste of storage if I don't need it.
5 Answers
If you don't plan to hibernate, then you likely won't need it. I've found that on most systems, managing without Swap isn't an issue as long as you're not pushing your RAM to its limits too often.
You might not need it, but many argue that systems benefit from having some Swap available. If you fill up your RAM, the OS could start killing processes randomly, which isn't ideal. Setting up ZRam as your first line for Swap makes sense, even with 128GB RAM.
Technically, you shouldn't need Swap unless you're using hibernation. However, having a little Swap can safeguard against unexpected memory leaks and system lockups due to out-of-memory errors. I'd say a size between 8GB and 32GB is generally sufficient for most users.
Honestly, you don't actually need Swap or ZRam unless you're running some very memory-intensive tasks. I've gone without Swap on my 8GB laptop, and it worked fine, so if you're not filling your RAM much, disabling it might free up storage.
Many suggest keeping a small amount of Swap just in case! You could disable your current Swap partition and maybe create a lightweight 4GB Swap file instead for some buffer without sacrificing too much storage.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures