Virtual Memory Computer Architecture
Virtual Memory
In Computer Architecture, Virtual memory is a technique used in computing to optimize memory management by transferring data between different storage systems, such as RAM and Disk Storage. It is used to store application data and instructions that are currently not needed to be processed by the CPU. Virtual memory enables a system to run applications larger than the main memory.
The disk seen by the CPU as virtual memory, if the CPU has 16 address lines, then the size of virtual memory will be 216 B. Application residing in the disk called process. When a user runs a program, the operating system moves the pages of the process into the main memory. Virtual memory divided into pages as shown below figure. Process A occupied pages P0 through P4, and process B occupied pages P5–P9.