Virtual Memory
PronunciationVER-choo-ul MEM-uh-ree
Definition
Virtual memory gives each process its own private view of memory. The operating system maps those virtual addresses to real RAM, and can move less-used parts to disk, so programs can use more memory than the machine has.
Where you hear it
In OS courses, memory-usage graphs (RSS vs virtual size), container memory limits and performance debugging when a machine starts swapping.
Examples
The process shows 4 GB of virtual memory but uses 300 MB of RAM.
The server is swapping, so everything slowed down.
Each process sees its own address space, so one program cannot read another program's memory.
Common mistake
Reading virtual size as real usage. Look at resident memory (RSS) to see what is actually in RAM.
Don't confuse with
Physical RAM, the actual chips. Virtual memory is the layer that maps program addresses onto it and onto disk.
Say it at work
- In a meeting or chat
Check the RSS, not the virtual size.
- In an email or ticket
Swap usage is climbing.
Keep exploring
More in Programming Fundamentals