





















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!






















Jonathan Walpole Computer Science Portland State University
Problem: Page table overhead increases with address space size Page tables get too big to fit in memory! Consider a computer with 64 bit addresses Assume 4 Kbyte pages (12 bits for the offset) Virtual address space = 2 52 pages! Page table needs 2 52 entries! This page table is much too large for memory!
How many mappings do we need (maximum) at any time? We only need mappings for pages that are in memory! A 256 Mbyte memory can only hold 64 4Kbyte pages Only need 64 page table entries on this computer!
An inverted page table Has one entry for every frame of memory Records which page is in that frame Is indexed by frame number not page number! So how can we search an inverted page table on a TLBmiss fault?
If we have a page number (from a faulting address) andwant to find it page table entry, do we Do an exhaustive search of all entries? No, that’s too slow! Why not maintain a hash table to allow fast access givena page number?
O(1) lookup time with a good hash function
Protection though addressability If address translation only allows a process to access itsown pages, it is implementing memory protection But what if you want a process to be able to read andexecute some pages but not write them? text segment
Need some way of implementing protection based onaccess type
How is protection checking implemented? compare page protection bits with process capabilitiesand operation types on every load/store sounds expensive! Requires hardware support! How can protection checking be done efficiently? Use the TLB as a “protection” look-aside buffer as wellas a translation lookaside buffer Use special segment registers
All pages within a segment usually share the same protectionstatus So we should be able to batch the protection information
All pages within a segment usually share the same protectionstatus So we should be able to batch the protection information
Segments vary in size from process to process Segments change size dynamically (stack, heap etc)
Example: A compiler
Each space grows, shrinks independently!