NOTE
Linux Memory Management
Swap space is a disk area to which Linux can move memory contents under pressure. These notes use that concept to compare swap and virtual memory.
This is a historical learning note and may contain outdated or incomplete understanding.
1. Linux Memory Management
2. Swap Space
It is a partition on disk. When Linux memory is full, some memory is swapped to the Swap space.
2.1. Swap Space vs Virtual Memory
| Swap Space | Virtual Memory | |
|---|---|---|
| Exists on disk | Exists on disk | |
| Swapped with main memory | Swapped with main memory | |
| Operating-system concept | Process concept | |
| Solves the problem of insufficient physical memory for the system | Solves the problem of insufficient physical memory for a process |
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub