Simulation of Memory Management Using Paging Mechanism in Operating Systems
Simulation of Memory Management Using Paging Mechanism in Operating Systems
Simulation of Memory Management Using Paging Mechanism in Operating Systems
Paging
CPU Scheduling
Simulation Specifications
Variable Parameters
Fixed Parameters
Other Parameters
Simulation Goal
Synchronization
Memory CPU Disc
and
Management Scheduling Scheduling
Deadlock Handling
study … … …
parameter performance
relationships
… … …
achieve
parametric optimization
using simulation technique
The Integrated Perspective
Introduction
Multi-Process OS
Memory Management
Paging Mechanism
CPU Scheduling
Memory Management
Keep track of memory in use
Memory allocation
Manage swapping between main
memory and disk
Memory Management (Cont.)
Three disadvantage related to memory
management are
Synchronization
Redundancy
Fragmentation
Memory Management (Cont.)
Parameters involved
Memory Size
Disc access time (transfer time, latency and seek)
Time slot for RR
Compaction thresholds (percentage and hole size)
RAM access time
Fitting Algorithm
Disc Scheduling algorithm choice (FIFO, SSTF, SCAN,
LOOK, etc)
Disc Structure and Capacity (Surfaces/tracks/etc.)
Disc writing mechanism (where to write back
processed pages)
Paging
Paging entails division of physical
memory into many equal-sized frames
When a process is to be executed, its
pages are loaded into any available
memory frames
Paging
Parameters Involved
First-In-First-Out, Least-Recent-Used,
Least-Frequently-Used and Random
Paging
Effect of Page Size
Large page size: internal fragmentation
Small page size: requires large amounts
of memory space to be allocated for
page tables and more memory accesses
potentially
Finding an optimal page size: not easy,
dependent on the process mix and the
pattern of access.
Paging
Effect of Page Replacement Algorithms
Page Size
Page Replacement Algorithm
Round Robin Time Slot
Best Combination of parameters
Conclusion
Parameter Analysis (Cont.)