What is Swap Space?
A portion of disk storage used as virtual memory when physical RAM is fully utilized.
Swap space extends available memory by using disk storage. When RAM is full, the kernel moves inactive memory pages to swap, freeing RAM for active processes. Swap can be a dedicated partition or a swap file.
While swap prevents out-of-memory crashes, disk access is much slower than RAM. The swappiness parameter (0-100) controls how aggressively the kernel uses swap.