Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

How Virtual Memory Works

Virtual Memory allows us to access more memory than we have by setting aside some secondary storage space to act as extra memory.

Paging

Paging

  • Memory can be split into sections called 'pages'.
  • Virtual Memory works by moving these pages between the Random Access Memory (RAM) and the secondary storage.
Move pages to Hard Disk Drive (HDD)

Move pages to Hard Disk Drive (HDD)

  • If a page is not being used, then we might want to put it into Virtual Memory.
  • When a page is moved to the HDD and not being used, it is put into a special file called the pagefile.
  • Other processes can then use the memory that we just freed in the RAM.
Move pages to RAM

Move pages to RAM

  • When we want to use a page again, we first need to move it back to the RAM.
  • We do this by swapping the page that we want with one that is already in the RAM.

Virtual Memory

Virtual memory allows us to store more data when our RAM is at capacity.

Virtual Memory

Virtual Memory

  • Virtual Memory is a technique where we use secondary storage as if it were RAM.
  • Virtual memory is not always ideal since:
    • Virtual Memory can have negative impacts on performance.
    • Virtual Memory can have negative impacts on the health of Solid State Disks (SSDs).
    • We might have limited space in secondary storage.
Paging

Paging

  • Memory can be split into sections called 'pages'.
  • Virtual Memory works by moving these pages between the Random Access Memory (RAM) and the secondary storage.
Moving pages to HDD

Moving pages to HDD

  • If a page is not being used, then we might want to put it into Virtual Memory.
  • When a page is moved to the HDD, it is put into a special file called the pagefile.
  • Other processes can then use the memory that we just freed in the RAM.
Moving pages to RAM

Moving pages to RAM

  • When we want to use a page again, we first need to move it back to the RAM.
  • We do this by swapping the page that we want with one that is already in the RAM.
Jump to other topics
1

Problem Solving

2

Programming

3

Data

4

Computers

5

Communication & The Internet

6

The Bigger Picture

Practice questions on Virtual Memory

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
Answer all questions on Virtual Memory

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium