Free taster
5 of 6 sections open
The Desk with a Filing Cabinet
The Desk with a Filing Cabinet
Imagine you're working at a desk with limited surface area (this is your RAM). You're working on 10 different projects, but your desk only has space for 3 folders at once. What do you do? You keep a filing cabinet next to your desk (this is your hard drive). When you need to work on a different project, you quickly swap folders between the desk and the filing cabinet. This is exactly how virtual memory works - it uses hard drive space as an extension of RAM when you run out of physical memory!
Deep Dive: What is Virtual Memory?
Virtual memory is a memory management technique that creates the illusion that a computer has more RAM than it physically does. It does this by temporarily transferring data from RAM to disk storage (hard drive or SSD), freeing up RAM for active processes.
Earn the mark scheme marks
Exam Tips - Virtual Memory
Most common exam questions:
- "What is virtual memory?" → Uses hard drive/SSD space as extension of RAM when RAM is full
- "Why use virtual memory?" → Allows more programs to run than physical RAM permits / prevents crashes
- "Drawback of virtual memory?" → Much slower than RAM because hard drive access is slow / can cause thrashing
- "What is paging/swapping?" → Moving data between RAM and hard drive to free up RAM space
Key phrases to use:
- Definition: "Uses hard drive space as extension of RAM" or "temporary storage on disk when RAM full"
- Benefit: "Allows more programs to run simultaneously" + "prevents out-of-memory crashes"
- Drawback: "Much slower than physical RAM" + "hard drive is 100x+ slower" + "causes performance degradation"
- Process: "Data swapped between RAM and hard drive" or "paging data in and out"
Common mistakes to avoid:
- Saying virtual memory is faster than RAM - NO! It's always slower (hard drive < RAM)
- Confusing virtual memory with RAM - virtual memory is on the HARD DRIVE
- Forgetting to mention the speed drawback - always say "slower than RAM"
- Not explaining WHY it's needed - link to "running out of physical RAM"
Extended answer structure (4+ marks):
- Definition: Virtual memory uses hard drive space as extension of RAM
- When used: When physical RAM is full and more memory needed
- Process: OS moves less-used data from RAM to page file on hard drive (paging/swapping)
- Benefit: Allows running more programs than physical RAM permits / prevents crashes
- Drawback: Much slower than RAM because hard drive access is slow / can cause severe performance degradation (thrashing)
- Conclusion: Virtual memory is essential safety feature but not a replacement for physical RAM
Now try it yourself
Quiz · Question 1 of 15
What is virtual memory?
Tap an answer to check it