Memory Management - PowerPoint PPT Presentation

1 / 36
About This Presentation
Title:

Memory Management

Description:

Select plates, bowls, silverware. Serve food & Eat. You wash your dishes ... Select Plates, Bowls, Silverware. 11. Explicit Memory Management: Hand Wash Dishes. 12 ... – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 37
Provided by: csUt8
Category:

less

Transcript and Presenter's Notes

Title: Memory Management


1
Memory Management
Kathryn McKinley University of Texas at Austin
2
About me
3
Software for Software
Program
Compiler translates human format to computer
format
Executable
Computer
Runtime System Software
4
Whats Inside?
5
IBM Power4 Microprocessor
Only 12 of Non-Cache, Non-TLB Core Area is
Execution Units
6
Memory System Organization
Registers
Instruction Cache
CPU Central Processing Unit
Level 2 Cache
Data Cache
Memory
7
Software for Software
Program
Compiler translates human format to computer
format
Executable
Computer
Runtime System Software
8
Eating
  • Do forever
  • Prepare meal
  • Select plates, bowls, silverware
  • Serve food Eat
  • You wash your dishes
  • Explicit Memory Management

9
Select Plates, Bowls, Silverware
10
Select Plates, Bowls, Silverware
11
Explicit Memory ManagementHand Wash Dishes
12
Explicit Memory ManagementHandwashing
13
Explicit Memory ManagementHand Wash Dishes
14
Explicit Memory ManagementHandwashing
15
Explicit Memory ManagementHand Wash Dishes
16
Dish Washer Automatic Memory ManagementGarbage
Collection
  • Do forever
  • Prepare meal
  • Select plates, bowls, silverware
  • Serve food Eat
  • Dad put dishes in dishwasher
  • Dad checks if dishwasher full or
  • Out of plates, bowls or silverware
  • Dad runs dishwasher

17
Select Plates, Bowls, Silverware
18
Select Plates, Bowls, Silverware
19
Dad Runs Dish Washer Puts Up Dishes
20
Computer Resources
Page
Memory
21
Mapping Dishes to Computer Resources
Data Structure Declarations
22
Contiguous Allocation
New (Plate1)
23
Contiguous Allocation
New (Plate1) New (Plate2) New (Bowl1) New
(Fork1) New (Fork2) New (Spoon1)
24
Contiguous Allocation
etc.
25
Explicit Memory ManagementFree with Continuous
Allocation
Free (Bowl3)
26
Free with Contiguous Allocation
Free (Bowl3) Free (Spoon1)
27
Garbage Collection(Automatic Memory Management)
with Contiguous Allocation
Wait longer
28
Garbage Collection with Contiguous Allocation
L
L
Find live objects L
L
L
29
Garbage Collection with Contiguous Allocation
Find live objects L Copy live objects to new area
L
30
Garbage Collection with Contiguous Allocation
Find live objects L Copy live objects to new
area Reclaim old space
L
31
Garbage Collection with Contiguous Allocation
Find live objects L Copy them to new
area Reclaim old space Allocate into new space
32
Allocation withSize-Class Free-Lists
33
Explicit Memory ManagementFree with
Size-Classes Free-Lists
Free (Bowl3) Free (Spoon1)
34
Memory Management
  • All memory management uses one of these two basic
    mechanisms
  • Contiguous allocation
  • Size-Class Free-Lists
  • Classic Computer Science Problem in Space-Time
    tradeoff

35
Other Key Ideas in Memory Management
  • Locality
  • Incrementality
  • Generational behavior
  • Older-first behavior
  • My research group introduced this one!

36
Questions?
Write a Comment
User Comments (0)
About PowerShow.com