Do I Need Swap or ZRam with 128GB of RAM?
Asked by
!switch to manual
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.
Answers
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.
Reply to this answer
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.
Reply to this answer
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.
Reply to this answer
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.
Reply to this answer
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.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions