Giter VIP home page Giter VIP logo

yyuanye / gem5-nvmain-hybrid-simulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cyjseagull/gem5-nvmain-hybrid-simulator

1.0 2.0 1.0 117.25 MB

gem5-nvmain hybrid simulator supporting simulation of DRAM-NVM hybrid memory system

Python 11.15% Shell 0.18% C 2.97% Makefile 0.06% C++ 44.79% M4 0.15% HTML 0.42% Visual Basic 0.01% Assembly 0.73% Perl 0.10% Emacs Lisp 0.01% Java 0.01% XSLT 0.05% SystemVerilog 0.35% Roff 39.03%

gem5-nvmain-hybrid-simulator's Introduction

yyuanye

gem5-nvmain-hybrid-simulator

  1. DRAM-NVM Hybrid-Simulator

1.1 Full System Simultor : gem5

1.2 Memory System Simulator: NVMain

1.3 how to attach nvmain with gem5

    (1) environment requirement
  • python version < 3.0
  • scons >= 0.98.1
  • gcc >= 4.6.0;

(2) compile gem5 with nvmain (patch file can be found in gem5-stable/final_patch/nvmain-classic-gem5-9850)

  • patch gem5 with nvmain patch file : patch -p1 < final_patch/nvmain-classic-gem5-9850

  • compile with scons : scons EXTRAS=nvmain-path -jn (n represents compiling threads num)

      (3) run system with nvmain memory
    
  • you can refer to example in directory rapp-test/gcc:--mem-type=nvmain --nvmain-config=nvmain-config-file-path

  1. Cache Optimization Module in gem5-nvmain-hybrid-simulator

(1)Architecture and Principle of Cache Optimization in DRAM-PCM hybrid memory 

principle of cache optimization

  • adjust cache replacement policy according to cache miss penalty in DRAM-PCM hybrid memory system , for example: evict data block in LLC cache which fetched from PCM is expensive than data block fetched from DRAM . When evicting cache block from LLC cache , evict data block from DRAM first;

  • recalculate cache replacement priority according to penalty of cache miss in memory system and reuse probability of cache block;

      (2)related source code
    
  • gem5-stable/src/mem/cache/tags/

  1. Rank-Based-Page-Placement Module in hybrid simulator implemented by multi-level-queue

    (1)Principle of Rank-Based-Page-Placement Strategy

principle of Rank-Based-Page-Placement

  • classfy memory pages into hot-pages and cold-pages according to access time;

  • page access information is managed by multi-level-queue;

      (2)related source code
    
  • nvmain/Utils/MultiQueMigrator/

  • Decoders/Migrator/

  • configuration file example: Config/Hybrid_example.config

  • simple example scripts running CPU SPEC2006 benchmarks are placed in directory: gem5-stable/rapp-test

  1. Programmer-Specific-Page-Migration in Hybrid memory system

gem5-nvmain-hybrid-simulator's People

Contributors

cyjseagull avatar yyuanye avatar

Stargazers

Sumukha Pk avatar

Watchers

James Cloos avatar  avatar

Forkers

sumukha-pk

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.