Skip to content

rsthind/Virtual-Memory-System-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual-Memory-System-Simulator


This simulator has five main files:
• page_splitting.h - Break down a virtual address into its components.
• paging.c - Initialize any necessary bookkeeping and implement address translation. • page_fault.c - Implement the page fault handler.
• page_replacement.c - Write frame eviction and the Clock Sweep algorithm.
• stats.c - Calculate the Average Access Time (AAT)

Testing


For the commands below replace (trace) with the trace file you would like to run.

To run the random algorithm:

$ make
$./vm-sim -i traces/(trace).trace -rrandom

To run the clocksweep algorithm:

$ make
$./vm-sim -i traces/(trace).trace -rclocksweep

About

Developed a virtual memory system simulator with address translation, page fault handling, frame eviction, and conducted a comparative analysis of 2 page replacement algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors