This project implements two page replacement policies: FIFO and Random and buffer hit ratios for these policies of the buffer manager layer and of the database management system MINIBASE. These hit ratios indicate the effectiveness of buffer replacement policies.
DO NOT add Bin folder or class files to the gitignore file DO NOT delete bin folder, as this contains the compiled classes needed to run the code
- Have a JDK 17 installed
This project consists of makefile for the commands to compile and run the code.
- Download make command:
sudo apt update
sudo apt install make
- Go inside the FIFO-policy folder/Random-policy folder, run the following command to compile the code:
make bufmgr
This command will compile the code in src folder
- run this command to run the code:
make bhrtest
make bmtest
For running this project on windows, you need to make changes in the makefile to point it to the right location (change '/' to '').