Virtual Memory
Virtual Memory
Virtual Memory
What is virtual memory?

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

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
