https://github.com/tomarakanksha/db-buffer-page-replacement-policy
This project implements page replacement policies of the buffer manager inside a Database Management System.
https://github.com/tomarakanksha/db-buffer-page-replacement-policy
Last synced: 2 months ago
JSON representation
This project implements page replacement policies of the buffer manager inside a Database Management System.
- Host: GitHub
- URL: https://github.com/tomarakanksha/db-buffer-page-replacement-policy
- Owner: tomarakanksha
- Created: 2023-01-27T23:10:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T00:45:22.000Z (over 2 years ago)
- Last Synced: 2025-02-05T07:23:42.937Z (4 months ago)
- Language: Java
- Homepage:
- Size: 285 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# db-buffer-page-replacement-policy
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](https://research.cs.wisc.edu/coral/mini_doc/minibase.html). 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**# How to run this project:
## prerequisite:
* Have a JDK 17 installedThis project consists of makefile for the commands to compile and run the code.
## Running project on Linux
1. Download make command:
```
sudo apt update
sudo apt install make
```2. 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 folder3. run this command to run the code:
```
make bhrtest
make bmtest
```## Running project on Windows
For running this project on windows, you need to make changes in the makefile to point it to the right location
(change '/' to '\').