Can Someone Explain How Swap Space Really Works?

0
6
Asked By CuriousCat89 On

I've been under the impression that swap space works like an extension of RAM. I thought that if my RAM is full, it can overflow into swap space, meaning I could effectively combine my 32 GB of RAM with, say, 10 GB of swap for a total of 42 GB of usable memory. However, I recently learned that this isn't quite accurate. Apparently, having 32 GB of RAM plus swap does not equal more unique information because of how the system manages memory. Also, I heard that to safely use hibernation, I need around 33 GB of swap, which doesn't add up for me, as it seems like this would overwrite what RAM is already handling. Can anyone provide a solid guide or explanation to clarify how swap really functions?

2 Answers

Answered By TechieHeart23 On

Honestly, it's important to not rely solely on AI tools for these kinds of technical explanations. You should search for solid material written by actual people for the most accurate information. I found some helpful links: [Arch Wiki on Swap](https://wiki.archlinux.org/title/Swap), [GeeksforGeeks on Swap Space](https://www.geeksforgeeks.org/operating-systems/swap-space-in-operating-system/), and [Memory Paging on Wikipedia](https://en.wikipedia.org/wiki/Memory_paging). These resources should clear things up!

CuriousCat89 -

Thanks for the resources! I was having a tough time finding clear guides, especially since I'm setting up something specific on Qubes that requires a complex installation.

Answered By FlexibilityGuru On

You're right to question how swap actually works! Having swap doesn't mean it’s like adding extra RAM—it's mainly for overflow when your physical RAM runs low. Plus, RAM compression is often used, so when you hibernate, you can actually work with less swap space than you might think. I've even successfully hibernated with 16 GB of RAM and 8 GB of swap. And you're free to make your swap as big as you want; it's not limited!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.