Memory Management / 01

Virtual memory

Watch how an operating system manages memory when RAM is full.

RAM is full

Step 1 of 8

RAM stores the data and instructions programmes need while they are running. In this example, all four RAM slots are occupied.

Processor

Running programmes

CPU requestReady

RAM

Fast · limited space
4 / 4 slots used
Main memoryFAST

HDD

Slower · swap space
0 / 4 slots used
Secondary storageSLOWER
RAM is full. There is no free space for another page.
Keyboard: ← Back · → Next · R Reset

Simplified paging demonstration

Page

A small, fixed-size block of virtual memory.

Swap space

Area on storage used to hold pages moved out of RAM.