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.
To build MacSim, ensure the following are in place:
-
Operating System:
Currently, only Linux distributions are supported. MacSim has been tested on:- Ubuntu
- Redhat (TODO)
-
Compiler:
Any compiler that supports the C++0x (or C++11) standard.
Verified to work with:gcc4.4 or highericc(work in progress)
-
SConstruct:
Installsconsusing:sudo apt-get install scons
-
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
To compile MacSim, follow these steps:
- Clone the repository (if not already done):
git clone https://github.com/Zeekersky/Block-Replacement-MacSIM cd Block-Replacement-MacSIM - Build the project:
./build.py
- Verify the build:
- If successful, the 'macsim' binary should be present inside the 'bin' directory.
After building the project, proceed with the following steps to run MacSim:
-
Navigate to the bin directory:
cd bin -
Ensure the following files are present in the bin directory:
-
Run the MacSIM binary:
./macsim
For any issues or questions, feel free to reach out!