Dulranga's Notes
Semester 3Computer Architecture

Virtual Memory

gives an illusion to the cpu it has more main memory than it actually do. Also used to give each process its own memory space. So 0x0040000 Will respond to different data in different processes and One will not be able to see other's data.

address space - set of addresses a programmer has access to 0x000034945345984

virtual addr →\to physical addr conversion is done by page table

Terminology

Main memory - physical memory Virtual memory blocks - pages a page is not in main memory = page fault

Each Virtual Page and Physical Frame is same size (usually 4KiB) Physical memory can hold frames until its full. Total Frames = Physical Size / Frame size.

We need addresses for each frame start, then we go from offset to find the exact data value.

Each Page in Virtual Memory is same size as physical frames. Virtual Address size is free for us to decide, like 32bit virtual address. This is how we give the illusion of huge memory to the developers.

Since offset values are same, Virtual Page Number is the rest bit count. PPN and VPN bit counts differ.

Each Page has information

On this page