Explain virtual memory
Describe how storage pages can act as virtual memory when RAM is insufficient and why this is slower than RAM.
Exam scope and assessment notes
This sequence follows Cambridge IGCSE Computer Science 0984, 2026–2028 syllabus Version 4. It covers subject content sections 3.1–3.3 only. The separately published 2029–2031 syllabus is not mapped here. Practice is original, self-checked and does not award an official Cambridge grade. Full timed papers and human subject-teacher review remain outstanding. Cambridge states that 0984 has the same 2026–2028 subject content as 0478, with 9–1 grading. In June and November, Cambridge lists 0984 in Administrative zone 3 and for centres in Oman and the UAE. Confirm availability for your centre and exam series with Cambridge International. The separately published 2029–2031 syllabus changes to Python 3 only and removes pseudocode; this 2026–2028 route does not cover those changes.
Before you begin
- No programming language is required. Be comfortable with place value and multiplication; each lesson introduces the computer-science notation it uses.
Work on paper. Try each question before revealing help, and explain why your method works.
Quick readiness check
Which is normally faster for active CPU access: RAM or secondary storage?
What you will learn
- Explain why a computer uses virtual memory
- Describe pages moving between RAM and secondary storage
- Explain the performance cost of using virtual memory
Virtual memory extends working space using storage
When RAM is insufficient for active data, the operating system can use part of secondary storage as virtual memory. It transfers pages of data between RAM and the virtual-memory area when needed.
Apply and check the rule
This lets a computer keep more active program data available than physical RAM alone can hold, but secondary storage is slower than RAM. Frequent page transfers can make the computer respond slowly; virtual memory is not a physical upgrade to RAM.
Pause and explain
What is one likely cost when a computer relies heavily on virtual memory?
Worked example
Several applications need more memory than the computer has available in RAM. What may the operating system do?
Show the worked solution
- Use part of secondary storage as virtual memory.
- Move pages between RAM and that area as needed.
- Expect slower access when data must be fetched from secondary storage.
Answer Transfer pages between RAM and virtual memory on secondary storage, allowing more active data at a speed cost.
Try a topic test
Choose Easy, Normal or Difficult. Save your answers and open worked review after finishing.
Test this topic →From guided practice to a new situation
Write your answer and reasoning first. Use a hint only if you are stuck. The model solution is for self-checking; your written work is not automatically marked.
Why might an operating system move a page from RAM to virtual memory?
Give me a hint
Consider the limit on physical working memory.
Compare my reasoning
- RAM may be full of active data.
- The system can move a less-needed page to secondary storage.
- It can free RAM for data needed more immediately.
To free RAM when active data exceeds the available primary storage.
Look for these in your work
- RAM limit recognized
- Page moved to secondary storage
- Purpose explained
Explain why accessing a page from virtual memory can be slower than using it from RAM.
Give me a hint
Compare the underlying media.
Compare my reasoning
- Virtual-memory pages are held on secondary storage.
- Secondary storage has slower access than RAM.
- Moving pages takes time.
The page must be transferred from slower secondary storage into RAM before the CPU can use it efficiently.
Look for these in your work
- Storage location
- Speed comparison
- Transfer cost
A laptop slows dramatically when many large applications are open. Explain how virtual memory may help and why it may not feel like adding more RAM.
Give me a hint
State the capacity benefit and the storage speed limitation.
Compare my reasoning
- Virtual memory can hold pages on secondary storage when RAM is insufficient.
- It can keep more active program data available by moving pages as needed.
- Secondary storage is slower, so frequent transfers can make response times worse than with more physical RAM.
Virtual memory provides extra working space by moving pages between RAM and secondary storage, but disk/flash access is slower than RAM. It can prevent immediate failure, not match the speed of more RAM.
Look for these in your work
- Why it helps
- Page movement described
- Performance limitation
Common mistakes
- Calling virtual memory faster than RAM
- Saying virtual memory permanently increases physical RAM capacity
What can you explain now?
Where are pages stored when moved out of RAM for virtual memory?
Compare with the explanation
On secondary storage
Virtual memory uses secondary storage to hold pages not currently in RAM.
After trying it yourself, choose your next review. This is your self-assessment.
Your review choice appears on Today. Sign in to sync it across devices.
Make it stick
What is virtual memory, and why is it slower than physical RAM?
If you needed the solution, close it and solve the problem again from a blank page. A correct answer is stronger when you can explain the reason for each step.