What is swap memory in linux? What It Really Is, Why It Exists, and How to Actually Use It
Briefly

What is swap memory in linux? What It Really Is, Why It Exists, and How to Actually Use It
"Swap is simply a portion of your disk (HDD/SSD/NVMe) used as a slower backup for RAM. When your RAM fills up, the Linux kernel quietly moves "cold" data( i.e. rarely used memory pages) into swap, freeing up RAM for things we are actively running. Swap doesn't replace RAM. It extends it."
"Swap is one of the actual physical places Linux can store memory when RAM is full or when certain pages aren't being used actively. RAM = fast working space Swap = slower storage space for unused or idle data Swap vs. Virtual Memory - Not the Same Thing This is the most common point of confusion. You'll often hear people use "Swap" and "Virtual..."
Swap uses a portion of disk (HDD/SSD/NVMe) as a slower backup for RAM. When RAM fills, the kernel moves cold, rarely used memory pages into swap to free RAM for active tasks. Swap extends available memory but does not replace physical RAM and operates much more slowly. Enabling swap can prevent out-of-memory crashes and keep applications alive under high memory pressure, while excessive swapping can degrade performance. Swap and virtual memory are distinct concepts that are often confused; swap is a physical storage location for idle memory pages.
Read at Medium
Unable to calculate read time
[
|
]