Virtual Memory Management Week 6-1

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 11

Virtual Memory Management

Week 6-1

Simulating LRU in Software(1)

LRU using a matrix pages referenced in order


0,1,2,3,2,1,0,3,2,3
Bina Nusantara University

Simulating LRU in Software(2)

The aging algorithm simulates LRU in


software
Note
Bina Nusantara
University6 pages for 5 clock ticks, (a) (e)

Modeling Page Replacement Algorithms


Belady's Anomaly

FIFO with 3 page frames


FIFO with 4 page frames
P's show which page references show page faults
Bina Nusantara University

Design Issues(1)
Local versus Global Allocation Policies (1)

Bina Nusantara University

Original configuration
Local page replacement
Global page replacement

Page Size(2)
Overhead due to page table and internal fragmentation

Where

page table space

s e p
overhead

p
2

s = average process size in bytes


p = page size in bytes
e = page entry

internal
fragmentation

Optimized when

p 2 se
Bina Nusantara University

Subject

: T0316 Operating System

Memory Management
Week 5 - 2

Memory Management with bit map

Part of memory with 5 processes, 3 holes


tick marks show allocation units
shaded regions are free

Corresponding bit map


Same information as a list
Bina Nusantara University

Memory Management with linked


list

Bina Nusantara University

Memory Allocation Algorithm

Source: W. Stallings:Operating Systems: Internals and Design Principles

Bina Nusantara University

10

Memory Allocation Algorithm

Source: W. Stallings:Operating Systems: Internals and Design Principles


Source: W. Stallings:Operating Systems: Internals and Design Principles

Bina Nusantara University

11

You might also like