This repository contains the codebase and report for the CS204 project aimed at understanding cache misses and proposing a solution to increase Instruction Per Cycle. The project focuses on implementing novel cache remapping strategies to improve cache performance.
The objective of this project is to reduce conflict misses in the cache by implementing different cache remapping strategies and evaluating their impact on cache performance.
- Implemented a cache remapping strategy based on access frequency of cache sets.
- Reserved a least frequently accessed cache set for each hot set.
- Increased IPC by 0.05% from the original result.
- Increased the number of reserved cold sets for each hot set.
- Introduced read redirection to reduce frequent main memory accesses.
- Increased IPC by 0.23% from the original result.
- Rectified logical flaws in determining hot and cold sets.
- Optimized read redirection by removing unnecessary sets.
- Increased IPC by 1.2% from the original result.
-
Clone the repository:
git clone https://github.com/kushrm2803/ChampSim.git
-
Open in UNIX based system and navigate to the directory containing the codebase.
-
For granting permissions, run for both build_champsim.sh and run_champsim.sh
chmod +x script.sh example : chmod +x build_champsim.sh
sed -i -e 's/\r$/\n/' script.sh example: sed -i -e 's/\r$/\n/' build_champsim.sh
-
Build the ChampSim simulator:
./build_champsim.sh bimodal no no no no lru 1
-
Run the ChampSim simulator with the desired configuration:
./run_champsim.sh bimodal-no-no-no-no-lru-1core 1 10 <trace_file_name>
Replace
<trace_file_name>
with the name of the trace file you want to simulate.
- Computer Organization and Embedded Systems by Carl Hamacher
- ChampSim simulator: GitHub
- Dhruv Gupta - Roll No: 2022CSB1079
- Kush Mahajan - Roll No: 2022CSB1089
- Nishant Patil - Roll No: 2022CSB1097