Coder Social home page Coder Social logo

cvsandeep / cache_replacment Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 9.01 MB

RRIP and ARC cache replacement

Perl 2.29% Common Lisp 2.78% SWIG 9.54% Roff 2.66% Raku 0.01% NewLisp 0.01% Assembly 18.90% Makefile 1.26% C 61.79% C++ 0.17% Lex 0.23% Shell 0.35%

cache_replacment's Introduction

Cache_replacment

RRIP and ARC cache replacement

Usage: The cache config parameter has the following format:

<name>:<nsets>:<bsize>:<assoc>:<rrpv_width>:<repl>

<name>   - name of the cache being defined
<nsets>  - number of sets in the cache
<bsize>  - block size of the cache
<assoc>  - associativity of the cache
<rrpv_width> - width of ReReference Prediction Value register
<repl>   - block replacement strategy, 'l'-LRU, 'f'-FIFO, 'r'-random 'a'-ARC 'b'-Bimodal RRIP 's'-Static RRIP 'd'-Dynamic RRIP

Eg of usage: for DRRIP ./Run.pl -db ./bench.db -dir results/gcc -benchmark gcc -sim ~/Cache_replacment/ss3/sim-cache -args " -max:inst 1000000000 -cache:il1 il1:2048:32:8:4:d" Eg of usage: for ARC ./Run.pl -db ./bench.db -dir results/gcc -benchmark gcc -sim ~/Cache_replacment/ss3/sim-cache -args " -max:inst 1000000000 -cache:il1 il1:2048:32:8:4:a"

GitHub Repositry Details: https://github.com/cvsandeep/Cache_replacment.git

In some application DRRIP is better than ARC due to following reasons

  • ARC references the cache block as recent or frequently used entries where as DRRIP as more references as M is greater than 2
  • ARC is only Trash resistant where as DRRIP is both scan and Trash resistant.

In some other application with very Long acess patterns it may have -ve performance than LRU as with too long pattern it cannot scan to rereference that block in this case ARC can act well as it is having a ghost buffer. if the pattern is too long ARC also will have -ve impact.

cache_replacment's People

Contributors

latluru avatar pawarsumeet81 avatar cvsandeep avatar

Watchers

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