OCR · GCSE · Computer Science
Course version: J277 · Version from Sept 2022
Primary storage (memory): Virtual memory
Virtual memory is a technique that lets a computer run programs larger than the available physical RAM.
Checked against the OCR J277 specification on .
- Point 5 of 6
- 3 key terms
Study notes
From the checked teaching notes for this specification point.
The idea
Virtual memory is a technique that lets a computer run programs larger than the available physical RAM. When RAM becomes full, the operating system moves pages of data that are not currently being used from RAM onto a reserved area of secondary storage, often called the page file or swap file. This frees space in RAM for the pages the CPU needs now. When a program needs data currently held on secondary storage, the operating system swaps it back into RAM and may move another page out. Because secondary storage is much slower than RAM, heavy use of virtual memory slows the computer down.
For example: A laptop with 8 GB of RAM running several large applications may use virtual memory to keep working, but switching between applications becomes noticeably slower.
What earns the marks
- Virtual memory extends the apparent size of RAM by using secondary storage as an overflow area.
- The operating system moves pages or blocks of data between RAM and a page file or swap file on secondary storage.
- When required data is not currently in RAM, the operating system retrieves it from secondary storage and may move another page out.
- Frequent swapping increases disk access and slows performance because secondary storage has a much higher access time than RAM.
- Virtual memory allows programs larger than physical RAM to run, and allows more programs to be open at once.
- The technique is managed by the operating system, not directly by the application program.
Common mistakes and how to put them right
Thinking virtual memory increases the amount of physical RAM.
Put it right: It does not; it uses secondary storage to supplement RAM.
Believing virtual memory makes a computer faster.
Put it right: It usually slows performance because secondary storage is slower than RAM.
Confusing virtual memory with cache or with cloud storage.
Put it right: Cache is fast memory close to the CPU, and cloud storage is remote secondary storage, not a local extension of RAM.
Exam tips
- Link virtual memory to the fetch-execute cycle by explaining that the CPU can only execute instructions and data held in RAM.
- Describe the transfer between RAM and secondary storage in both directions, using GCSE-level terminology.
- When asked about performance, compare access times of RAM and secondary storage rather than saying virtual memory is simply good or bad.
Try the lesson
The start of the Primary storage (memory): Virtual memory lesson, made from checked teaching notes for this specification point.
Have a go first
What is virtual memory used for in a computer system?
Listen
Virtual memory is a technique that lets a computer run programs larger than the available physical RAM. When RAM becomes full, the operating system moves pages of data that are not currently being used from RAM onto a reserved area of secondary storage, often called the page file or swap file. This frees space in RAM for the pages the CPU needs now. When a program needs data currently held on secondary storage, the operating system swaps it back into RAM and may move another page out. Because secondary storage is much slower than RAM, heavy use of virtual memory slows the computer down. For example, a laptop with 8 GB of RAM running several large applications may use virtual memory to keep working, but switching between applications becomes noticeably slower. A strong answer earns marks for these points. Virtual memory extends the apparent size of RAM by using secondary storage as an overflow area. The operating system moves pages or blocks of data between RAM and a page file or swap file on secondary storage. When required data is not currently in RAM, the operating system retrieves it from secondary storage and may move another page out. Frequent swapping increases disk access and slows performance because secondary storage has a much higher access time than RAM. Exam tip: Link virtual memory to the fetch-execute cycle by explaining that the CPU can only execute instructions and data held in RAM.
Key words
Say what each word means before you turn the card.
Virtual memory
Try answering aloud or in your head before turning the card.
Page file or swap file
Try answering aloud or in your head before turning the card.
Swapping
Try answering aloud or in your head before turning the card.
See every definition
- Virtual memory
- A technique that lets a computer run programs larger than the available physical RAM by using secondary storage as an overflow area.
- Page file or swap file
- A reserved area of secondary storage where the operating system moves pages of data that are not currently being used when RAM becomes full.
- Swapping
- The operating system moving pages or blocks of data between RAM and a page file or swap file on secondary storage, in both directions.
There is more to this lesson
The full lesson goes on to check your understanding and help you earn the marks. Create a free account to carry on, with your progress saved.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge
Test your understanding of Primary storage (memory): Virtual memory
Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge