Presentation is loading. Please wait.

Presentation is loading. Please wait.

CPSC 457 Operating Systems

Similar presentations


Presentation on theme: "CPSC 457 Operating Systems"— Presentation transcript:

1 CPSC 457 Operating Systems
Lecture 8 Memory Management: Virtual Memory

2 Last Time Memory Management Midterm Review Address Space
Base and Limit Registers How do we store processes Swapping Free Memory Management Midterm Review CPSC Tyson Kendon 2016

3 This Time Midterm Virtual Memory Fragmentation Paging Page Tables
Translation Look-aside Buffers Page Faults Locality CPSC Tyson Kendon 2016

4 Memory Fragmentation External Internal CPSC Tyson Kendon 2016

5 Virtual Memory CPSC Tyson Kendon 2016

6 Paging Frame Page Page Table Fixed-Sized block of Physical Memory
Fixed-Sized block of Logical Memory Page Table Maps the Pages on to the Frames CPSC Tyson Kendon 2016

7 Page Address Page Number Page Offset CPSC Tyson Kendon 2016

8 Paging can be EXPENSIVE
CPSC Tyson Kendon 2016

9 Translation Look-aside Buffer
Associative High Speed Memory high speed lookup cache CPSC Tyson Kendon 2016

10 Big Page Tables Hierarchical Page Tables Hashed / Clustered Paging
Lookups for the page table Hashed / Clustered Paging Hash Table entries, possibly gather related pages Inverted Page Table Track all frames and which pages are assigned to them CPSC Tyson Kendon 2016

11 Virtual Memory CPSC Tyson Kendon 2016

12 How to Implement Virtual Memory
Demand Paging Load pages into memory only when you need them Page Fault When you access memory and discover no page CPSC Tyson Kendon 2016

13 Next Time Memory Management Page Replacement Algorithms Concurrency
How to manage the problems when processes run at the same time Classical problems of Computer Science CPSC Tyson Kendon 2016


Download ppt "CPSC 457 Operating Systems"

Similar presentations


Ads by Google