StudyDeck

Virtual Memory

Exam code: 2210
Written by: Ashika|Reviewed by: Caroline Carroll|Updated 2 July 2026

Virtual Memory

Virtual Memory

What is virtual memory?

Diagram illustrating the transfer of pages between RAM and virtual memory within the secondary storage system.
  • Virtual memory is an extension of primary storage (RAM) located on secondary storage

  • In situations where RAM is close to being full, virtual memory can be used so that the computer remains operational

  • Programs and data not currently being executed are transferred to virtual memory

  • Programs and data are transferred back to RAM when they are needed

  • Programs are stored as pages of data

  • Pages of data are transferred between RAM and virtual memory when needed

  • Virtual memory is much slower than RAM and its use will impact negatively on system performance

  • To avoid the use of virtual memory, increase the size of the RAM

Example

Comparison of RAM and Virtual Memory
  • In the example above, the computer is turned on and the elements of the operating system are loaded into RAM

  • The user opens some spreadsheet and video editing software but RAM is full

  • The program not currently being used (video editing) is transferred to virtual memory

  • When the user wants to use the video editing software again, it is transferred back from virtual memory to RAM

Comparison of Ram and Virtual Memory when swapping out software in RAM