GithubHelp home page GithubHelp logo

hvvka / page-replacement Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 4.37 MB

Simulation and data analysis for 4 different page replacement algorithms

Python 99.10% Shell 0.90%
page-replacement lru second-chance optimal clock virtual-memory unittest

page-replacement's Issues

ZWS-3 Add logger

Don't use print anymore.

All the messages should be logged.
Printing during algorithm execution should have level debug.

ZWS-7 Generator instead of trace files

  • Generate trace data.
  • First 20 bits should be limited from 0 to X. Note: chose X=2
  • Last 12 bits can be random <0, F>.
  • Parametrize number of lines. Note: --pages=< file size in lines >
  • Investigate upper bound (X): parse swim.trace and gcc.trace to see how many pages are repeated.
  • Remove old trace files from project.

ZWS-4 opt refactor

  • PEP-8 variable/function/class compliance
  • Adding function/class documentation
  • Python 3 compliance checking
  • Algorithm verification (if implemented properly)
  • OPT algorithm project documentation (latex)

ZWS-11 Code refactor (clock, lru)

  • Add type suggestions.
  • Reorder methods to be top-down.
  • Manage useless comments and docstrings.
  • Verify implementation with literature.

ZWS-12 Excel

  • Bash script for running trace generation and invoking algorithms.
  • Prepare XLSX file with serialized results for traces: 100000, 250000 and 500000 and (for each) frames: 16, 32, 64.
  • Create charts out of it.

Update README

At the very end:

  • Copy and translate most important parts from latex documentation (would be nice to have charts) to README.
  • Translate report from latex to markdown.
  • Add report to wiki page.

Docs

https://www.overleaf.com/project/5bc346d271944f6a1987f69c

TODO
\section:

  • 3. Projekt aplikacji (wstęp) @zxxa
  • 3.3 Koncepcja działania algorytmów (wstęp) @hvvka
  • 3.5 Struktura danych wejściowych @zxxa
  • 4.1.3 CircularQueue
  • 4.3 Metoda odczytu danych wejściowych @zxxa
  • 5.2 Analiza wykonania algorytmów @hvvka
  • 5.3 Wnioski z testów i badań @hvvka
  • 6. Podsumowanie @zxxa
  • 5.1.2 Opis testów unittests (jeden przykładowy) @hvvka

ogólne:

  • nie wklejać kodu do punktów – czytać z pliku @zxxa

nowe:

  • dodać nowe template @zxxa
  • podpisać listingi kodu @hvvka
  • poprawić podpisy tabel/obrazków @hvvka

Clock & LRU tests

  • Implement helper methods to map page_table.
  • LRU test.
  • Clock test.

ZWS-14 OPT algorithm

  • PEP-8 variable/function/class compliance.
  • Add function/class documentation.
  • Python 3 compliance checking.
  • Algorithm verification. Is it implemented properly? Write unit tests.
  • OPT algorithm Latex documentation.

ZWS-8 LRU algorithm

  • PEP-8 variable/function/class compliance.
  • Add function/class documentation.
  • Python 3 compliance checking.
  • Algorithm verification. Is it implemented properly? Write unit tests.
  • LRU algorithm Latex documentation.

ZWS-1 Fix getUserInput() method from vmsim.py

Generally, taking input from user doesn't work correctly (at least for MacOS). Input args are read in wrong order and sometimes evaluated to None (even though they were provided).

The method should be either fixed, or simply changed to some nice wrapper.

Aging & OPT tests

  • Implement helper methods to map page_table.
  • Aging test.
  • OPT test.

ZWS-9 Clock algorithm

  • PEP-8 variable/function/class compliance.
  • Add function/class documentation.
  • Python 3 compliance checking.
  • Clock algorithm Latex documentation.

ZWS-10 Aging algorithm

  • PEP-8 variable/function/class compliance.
  • Add function/class documentation.
  • Python 3 compliance checking.
  • Algorithm verification. Is it implemented properly? Write unit tests.
  • Aging algorithm Latex documentation.

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.