15-213 Recitation 11 - PowerPoint PPT Presentation

About This Presentation
Title:

15-213 Recitation 11

Description:

Virtual Memory. Shaheen Gandhi. e-mail: sgandhi_at_andrew.cmu.edu. Office Hours: ... Virtual Memory and Caches are two separate things, but they draw on the same ideas ... – PowerPoint PPT presentation

Number of Views:36
Avg rating:3.0/5.0
Slides: 8
Provided by: shaheen8
Learn more at: http://www.cs.cmu.edu
Category:

less

Transcript and Presenter's Notes

Title: 15-213 Recitation 11


1
15-213 Recitation 11 4/9/01
  • Outline
  • More Cacheing
  • Virtual Memory

Shaheen Gandhi e-mail sgandhi_at_andrew.cmu.edu Of
fice Hours Wednesday 130 230 Wean 3108
  • Reminders
  • Lab 4 Due 4/11, 1159 PM
  • Exam 2 4/17, DH 2210

2
More Cacheing
  • Performance Analysis
  • What goods a cache if you dont use it?
  • Miss Rate, Hit Time, Miss Penalty
  • Types of Misses
  • Compulsory, Capacity, Conflict

3
Virtual Memory
  • A transparent system for mapping memory spaces
  • Enables both versatility and security
  • Virtual Memory and Caches are two separate
    things, but they draw on the same ideas

4
Virtual Memory
  • Physical Memory is thought of as a bunch of
    pages (equal sized blocks)
  • The Page Table provides mapping between virtual
    and physical address spaces
  • Who creates this?
  • The OS
  • The processor works with virtual addresses

5
Address Translation
  • Processor asks for word from memory
  • Hardware maps virtual address to physical address
    Page Table lookup
  • Page Fault?
  • Ask the operating system
  • Memory receives request as physical address
  • Everybodys happy

6
Address Translation
  • Sounds great!
  • Not really.
  • Page Table resides in memory
  • Processor runs at 1GHz Memory runs at 8ns
    (120MHz)
  • Since the Page Table resides in main memory, wed
    spend 10 clock cycles on every instruction
  • Solution?
  • A Cache (Translation Lookaside Buffer)

7
Virtual Memory Reasons
  • Why go through all this pain?
  • Versatility
  • Processes can act like they own the place
  • Enables multi-tasking operating systems
  • Dynamically allocate portions of memory to
    processes as needed (i.e., malloc)
  • Security
  • Processes cant always act like they own the place
Write a Comment
User Comments (0)
About PowerShow.com