Swap

In the Linux/Unix world, the term swap can be used a synonym for memory paging. Swap Article description::refers to both the act of moving memory pages between RAM and disk and the allocated space on the disk itself.

Linux can use any combination of swap partition and/or swap files together; however swap space may not be necessary depending on the necessary requirements for the system in question. For example, a laptop that will be suspending to disk (hibernation) requires all pages in memory to be stored to disk, so swap is necessary in this case. Server systems

Swap partition
As best practice, the Gentoo Handbook recommends creating a swap partition with twice the available system memory as part of the installation process.

Swap partitions can be created and activated at any time as long as partitions are available.

Swap files
In order to work around the more ridged constraints of disk partitions, an alternative is to use swap file. Files have the ability to be located inside disk partitions. This allows the system administrator the flexibility to resize or move the swap space as necessary to meet the demands of the system.

Creation
TODO