I have an AWS EC2 Windows host in a very strange situation, and I'm unable to actually determine how this is even possible.
Unfortunately, when I try to google or search this topic, all I get are hits about resizing / properly sizing your swap file, but nothing about swap file overallocation on a full disk.
Root device in AWS: 30GiB (29.6GB in windows) Drive Space used (size on disk):
- Windows folder: 21.7GB (23,349,198,848 bytes)
- Program Files (x86) folder: 4.00GB (4,298,366,976 bytes)
- pagefile.sys: 8.00GB (8,589,934,592 bytes)
- along with other smaller directories (users, inetpub, python27 etc)
It doesn't take very long to realize that 22 + 4 + 8 > 30GB.
How is this possible? I have guesses (swap space isn't actually allocated until it's used?), but I'm unable to actually find any documentation that actually explains how this is happening? If I were to use more RAM in this machine to the point of requiring swap space, would this machine suddenly crash because there is technically no available swap?
Additional info: - Swap is configured as a "Custom size", with both "Initial Size (MB)" and "Maximum Size (MB)" set to 8192. This is not a system managed size.