Cambridge O Level Computer Science · Syllabus 2210 · Hardware
Virtual Memory
What is Virtual Memory?
An area of secondary storage used as though it were RAM when there is not enough RAM for the programs and data currently in use; pages of data are transferred between RAM and virtual memory as they are needed, which allows programs to continue running, but secondary storage is slower than RAM so excessive transfer reduces performance.
This definition is part of the Hardware chapter in Cambridge O Level Computer Science.
Common mistakes with Virtual Memory
- 21. “Virtual memory is extra RAM.” Why wrong No physical memory has been added. Virtual memory is space on a drive being used as if it were RAM. Correct model Virtual memory is an area of secondary storage used when there is not enough RAM. Pages are transferred between RAM and virtual memory as they are needed, and the CPU still only works with RAM. Exam-safe “Virtual memory uses part of secondary storage when there is insufficient RAM, with pages of data transferred between the two as they are needed.” Check: where does virtual memory physically exist?In secondary storage — on the hard disk drive or solid-state drive.
- 22. “Virtual memory always improves performance.” Why wrong Every page transfer costs time, because secondary storage is slower than RAM. Using virtual memory heavily makes a machine slower, not faster. Correct model Virtual memory lets programs continue running when RAM is full, instead of stopping. The correct comparison is “slow but still working” against “unable to continue” — never against “faster”. Exam-safe “Virtual memory allows programs to continue running when RAM is insufficient, but because secondary storage is slower than RAM, frequent page transfers reduce performance.” Check: a computer is slow because it is using virtual memory heavily. Does a bigger hard disk fix it?No. More RAM is needed, so that fewer pages have to be transferred at all. A bigger disk only makes the slow store larger.
Questions students ask about Virtual Memory
Why is virtual memory not simply extra RAM?
Virtual memory is an area of secondary storage used as though it were RAM when there is not enough physical RAM for the programs and data in use; pages of data are transferred between RAM and virtual memory as they are needed. No physical memory has actually been added, and because secondary storage is much slower than RAM, frequent page transfers reduce performance rather than improving it. Virtual memory lets programs keep running when RAM is full instead of stopping, but it does not make the computer faster.

