whatis swap

Swap

Also known as: swap space, swap file, zram

Disk space (or compressed RAM with zram) the kernel uses to page out inactive memory when physical RAM runs short.

What Is Swap Space in Linux?

Swap lets the kernel move rarely used pages out of RAM so active programs and the file cache get more room. A little swap usage is normal and healthy; constant heavy swapping means you need more memory.

Swap can be a partition or a file. zram creates a compressed swap device in RAM itself, which is much faster than disk and is the default on Fedora. Hibernation requires disk swap at least as large as RAM in use.

Example

swapon --show
free -h