This document discusses paging in computer memory management. It defines paging as dividing memory into fixed-size pages, and physical memory into fixed-size frames. The memory management unit (MMU) uses a page table to map logical page numbers to physical frame numbers, translating virtual addresses to physical addresses. Typical page and frame sizes are powers of 2, from 512 bytes to 16 MB. Paging allows flexible and efficient use of physical memory and faster data access.
6. IIt Is A Set Of Registers
And Mechanisms To
Translate Virtual
Addresses To Physical
Addresses .
CPU
MMU
Memory i/O Device
Logical Address
Physical
address
7. oDivision of logical memory into fixed
size of blocks
oContinuous range of addresses
oLogical concept
oEqual size
oPresent in any order
8. oDivision of Physical memory into
fixed size of blocks
oCounterpart of Pages
oReality
oEqual size
Page size = Frame size
oPresent in any Order
9. Paging is a memory management
technique in which the memory is
divided into fixed size of Pages .
Paging is used for faster access of
data
11. Every logical address generated by CPU consist of two
parts
o Page number(P)
o Page displacement(d)/ Offset
(P) (d)
Page number (p) – used as an index into a page
table which contains base address of each page in
physical memory
Page offset (d) – combined with base address to
define the physical memory address that is sent to
the memory unit
Page number Page Displacement
12. o Page size & frame size are hardware dependent
o Typical values will range from 512 Bytes to 16 MB
per page
o Logical address space 2m and page size 2n
o High order m-n bits of a logical address will
designate the page number
o Low order n bits will designate page
displacement
Page number Page Displacement
m-n bits n bits
19. Translation of the logical address to the physical
address follows the form
Physical address=(frame#*number bytes)+displacement
e.g.
Logical address of 7 in the physical
memory????
physical Address = (4*4)+3 = 19
20. Easy to allocate physical memory
pick any free frame
No external fragmentation
All frames are equal
Minimal internal fragmentation
Bounded by page/frame size
Easy to swap out pages (called page out)
Size is usually a multiple of disk blocks
PTEs may contain info that help reduce disk traffic
Processes can run with not all pages
swapped in