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
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
|
|
1 |
|
2 |
|
3 |
|
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]