Sei sulla pagina 1di 12

Memory Paging.

Definition of Paging:-

•It is (a piece of software or data) divided into sections kee


ping the most frequently accessed into main memory and st
oring the rest in virtual memory.

•It permits the physical address space of a process to be non


contiguous.

•Physical memory is the actual memory location accessed by


a program.

•Linear address is the address generated by a program .


• Physical memory is divided into fixed size blocks called FRAM
ES.

• Linear address is divided into blocks of the same size called PA


GES.

• A frame must have the same size as a page.

• A frame is a place where a logical page can be phsically placed.


• With memory paging , the linear address is invisibly translated t
o physical address.

• Why Virtaul Memory is needed?

• The virtual meory uses disk as part of the memory thus allowin
g sum of all the programs can be larger than the physical memor
y.

• Only a part of a program must be kept in memory while the re


maining parts are kept on disk.
• One of the solution is to move some sections of program into w
hich are being used in RAM to hard disk(virtual memory)this w
ould free space in RAM for another program to use. Here hard d
isk is virtual memory.
Hardware Architecture of Paging:-
• Page Translation:- CPU converts the linear address into physical
address.

• Page Fault:- It occurs when a needed page is not in memory an


d the CPU interrupts the program.

• Virtual Memory Manager (VMM):- OS utility that manages the


loading and unloading of pages.

• OS copies the page into memory, program resumes execution.

Potrebbero piacerti anche