
























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























































-^
-^
Virtual Memory Organization
Memory Image for p
i
Secondary Memory
Primary Memory
Names, Virtual Addresses &
Physical Addresses
SourceProgram
AbsoluteModule
Name SpaceName Space
P^ ’s VirtualP^ ’s Virtualii Address SpaceAddress Space
ExecutableImage Physical Address Space Physical Address Space
B: Virtual Address Spacet
Physical Address Space
Virtual Address Space for p
i
Virtual Address Space for p
j
Virtual Address Space for p
k
Secondary Memory
(^0) n-1 Primary Memory
Physical Address Space
-^ Fragments of the virtual address space are dynamically loaded into primary memory
at any
-^ Each address space is fragmented given time
-^
-^
-^
Bt
(x) if x is loaded at
physical address y – Is mapped to
Ω^
if x is not loaded
-^
-^
Physical Address
Paging
-^
-^
-^
-^
-^
Physical Address Space
Page Size = 4 KB
Virtual Address Space
Page Table
Page Size: Power of 2
16 B =
64 KB
12 B = 4 KB
8220 = 001000000001110024604 = 1100000000011100
Leftmost 4 bits in virtual address represent page number Replace those bits by page frame number
Page Table Implementation
-^
-^
Need support from hardware
Translation Look-Aside Buffers
(TLBs)
lookup is done, and corresponding valuefield is output.
-^
-^
-^
the TLBs^ • Motorola 68030: 22 entries TLB: 80% hit ratio^ • Intel 80486: 32 entries TLB: 98% hit ratio