Coder Social home page Coder Social logo

anuj-rai-23 / adaptive-replacement-cache-arc-algorithm Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 4.0 733 KB

A project for Advanced Operating System(CS604) that implements ARC cache replacement policy.

C++ 100.00%
arc cache-replacement operating-system lru-cache lru-replacement-algorithm cpp17

adaptive-replacement-cache-arc-algorithm's Introduction

Adaptive Replacement Cache (ARC) Algorithm

A project for Advanced Operating System(CS604) that implements ARC cache replacement policy.
Refer to paper Outperforming LRU with an adaptive replacement cache algorithm
Project done under supervision of Dr. Nitin Auluck

Implementation

Four primary lists:

  1. MRU(T1) contains the top or most-recent pages in L1
  2. MRUG(B1) contains the bottom or least-recent pages in L1
  3. MFU(T2) contains the top or most-recent pages in L2
  4. MFUG(B2) contains the bottom or least-recent pages in L2

Size of these lists is controlled by parameter p, which controls the ratio of sizes between most-recent and least-recent pages
Implemented in C++ using containers from Standard Template Library(STL)

Results

ARC outperforms LRU in terms of hit-ratio and execution time (calculated in sec.)
See Result Graphs Execution Time Execution Time

adaptive-replacement-cache-arc-algorithm's People

Contributors

anuj-rai-23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.