[Docs](https://averagelinuxuser.com/linux-swap/G)
-
A partition or a file on a hard drive that helps to allocate temp memory when ram i exhaust
-
Check the size of the swap with swapon
To create a swap file 1. Create the file
- Change permissions to 600
- change file to the swapfile
- edit the [[Automatic Mounting fstab|fstab]]
Recommended swapiness
proc - The default is 60 but commended is 10
/proc/sys/vm/swappiness
#etc
- To change it edit /etc/[[sysctl|sysctl.conf]]
[!tip]- Swap Recommended size