Skip to content

Zeekersky/Block-Replacement-MacSIM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Block Replacement Policy for Hybrid Cache

This codebase implements a Block Replacement Policy in a hybrid cache, aimed at enhancing the lifetime of the Non-Volatile Cache.

For detailed insights, refer to this slide.


Requirements

To build MacSim, ensure the following are in place:

  1. Operating System:
    Currently, only Linux distributions are supported. MacSim has been tested on:

    • Ubuntu
    • Redhat (TODO)
  2. Compiler:
    Any compiler that supports the C++0x (or C++11) standard.
    Verified to work with:

    • gcc 4.4 or higher
    • icc (work in progress)
  3. SConstruct:
    Install scons using:

    sudo apt-get install scons
  4. Libraries:
    The following libraries are required:

    • zlib: Install using:
    sudo apt-get install zlib1g-dev
    • Python: Ensure Python is installed for the build process.
      Install Python with:
    sudo apt-get install python

Build Instructions

To compile MacSim, follow these steps:

  1. Clone the repository (if not already done):
    git clone https://github.com/Zeekersky/Block-Replacement-MacSIM
    cd Block-Replacement-MacSIM
  2. Build the project:
    ./build.py
  3. Verify the build:
    • If successful, the 'macsim' binary should be present inside the 'bin' directory.

Run Instructions

After building the project, proceed with the following steps to run MacSim:

  1. Navigate to the bin directory:

    cd bin
  2. Ensure the following files are present in the bin directory:

  3. Run the MacSIM binary:

    ./macsim

For any issues or questions, feel free to reach out!

About

A block replacement policy for hybrid cache design is implemented using MacSIM.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published