Virtual Memory (CIE IGCSE Computer Science)

Revision Note

Test Yourself
Amy Fellows

Expertise

Computer Science

Virtual Memory

  • The purpose of RAM is to store current data and program instructions in use
  • The amount of physical RAM available is limited. The average modern desktop computer has between 4GB  and 16GB of RAM. Some programs are larger than this
  • Virtual memory is part of secondary storage which acts as RAM when RAM is full
  • It prevents the computer system crashing when RAM is full
  • Data that needs to be accessed by the CPU directly is switched by the operating system from virtual memory into RAM and an inactive page from RAM replaces it in virtual memory. This is called page switching

ram-and-virutal-memory

A diagram showing page switching between RAM and virtual memory

  • The table describes the steps that are taken when a program is opened on a computer


Step


Description

1

  • The memory manager software built into the Operating System checks to see if there is sufficient space in RAM to move the new program’s instructions into RAM, so that they can be directly accessed by the CPU

2

  • If RAM is full, the memory manager will move out the most inactive pages of data and put them in virtual memory until needed

3

  • The new program instructions are moved into RAM

Worked example

Sandy is playing an open world role playing computer game set in a large 3D environment. This requires the use of virtual memory. Explain why

[3]

  • To extend the RAM capacity [1]
  • To stop the computer game from crashing when the physical RAM is full [1]
  • To allow the computer to process the large amount of data required [1]

You've read 0 of your 0 free revision notes

Get unlimited access

to absolutely everything:

  • Downloadable PDFs
  • Unlimited Revision Notes
  • Topic Questions
  • Past Papers
  • Model Answers
  • Videos (Maths and Science)

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Amy Fellows

Author: Amy Fellows

Amy has been a passionate Computing teacher for over 9 years, teaching Computer Science across the East Midlands, at all levels. Amy has also been a GCSE examiner for seven years.