Giter Club home page Giter Club logo

cs4310-project5's Introduction

Project Structure

+-[output]        ; Sample output files
|-RS_Generator.py ; Generate RS file with the gen_rs() function
|-RS_Reader.py    ; Provide a read_rs_from_file() function to read RS files
|-FIFO.py         ; Implementation of FIFO algorithm
|-LRU.py          ; Implementation of LRU algorithm
|-test.py         ; Generate multiple RS files and test each algorithm
|-...

Sample output of test.py

  • A sample ouput when P=2^20, s=0, m=200, and RS_length = 20:

    • (The final length of each RS is 20 * 200 = 4000)
    • This is also in output/output.txt
    • Generated RS files are in output/
FIFO page fault count when e=10, t=0.05: 2211
LRU page fault count when e=10, t=0.05: 2226
FIFO page fault count when e=10, t=0.001: 2232
LRU page fault count when e=10, t=0.001: 2210
FIFO page fault count when e=10, t=0.0005: 2185
LRU page fault count when e=10, t=0.0005: 2155
FIFO page fault count when e=15, t=0.05: 2780
LRU page fault count when e=15, t=0.05: 2767
FIFO page fault count when e=15, t=0.001: 2719
LRU page fault count when e=15, t=0.001: 2739
FIFO page fault count when e=15, t=0.0005: 2741
LRU page fault count when e=15, t=0.0005: 2717
FIFO page fault count when e=50, t=0.05: 3599
LRU page fault count when e=50, t=0.05: 3594
FIFO page fault count when e=50, t=0.001: 3587
LRU page fault count when e=50, t=0.001: 3589
FIFO page fault count when e=50, t=0.0005: 3620
LRU page fault count when e=50, t=0.0005: 3615
  • (This is the data we use for the report in the next section)

Report

FIFO_vs_LRU Page Fault count

  • Both page replacement algorithms, FIFO and LRU, has similar number of page faults, but overall, LRU performs slightly better.

cs4310-project5's People

Contributors

liuzicong98 avatar sjpmpzx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.