Code Monkey home page Code Monkey logo

mglru-benchmark's Introduction

mglru-benchmark

MGLRU Kernel Mongodb Test Bench for RHEL 8.4

!! Warning: This code comes with absolutely no warrantey or any sort. Use at your own risk !!

Prequisite

  • Red Hat Enterprise Linux 8.4 Have only tested this on this specific Distro. However can work on other RHEL based distros to.

  • Disk with atleast 128GiB space to host Mongodb Data Files

  • Atleast 140GiB of disk space on the partition that will run the bench

Running the bench

!! Warning: Contents of MONGODB_DISK are formatted and lost

 # cd <home-dir>
 # export MONGODB_DISK=/dev/<disk-name>; curl https://raw.githubusercontent.com/vaibhav92/mglru-benchmark/auto_build/build.sh | bash -s 

This would install+pull+build the needed dependecies and start the MGLRU benchmark after booting into the base kernel

Stopping the test

# systemctl stop mglru-benchmark; 
# systemctl disable mglru-benchmark;

Collecting results

Results will be collected in the directory <home-dir>/mglru/result

Analyzing results

Provided results.py python script can traverse the results directory and generate a CSV file out the stdout which can then be imported in the analysis tool

# python3 results.py <home-dir>/mglru/result  > results.csv

#Test-Methodlogy

Setup

  1. Pull & Build testing artifact v5.16 Base Kernel, MGLRU Kernel, MongoDB, YCSB & Qemu for qemu-img tools
  2. Format and mount provided MongoDB Data disk with ext4.
  3. Generate Systemd service/slice files for MongoDB and place them into /etc/systemd/system/
  4. Generate MongoDB configration pointing to the data disk mount.
  5. Start the built MongoDB instance.
  6. Ensure that MongoDB is running.

Load Test Data

  1. Ensure that MongoDB instance is stopped.
  2. Unmount the data disk and reformat it with ext4.
  3. Restart MongoDB.
  4. Spin off YCSB to load data into the Mongo instance.
  5. Stop MongoDB + Unmount data Disk
  6. Create a qcow2 image of the data disk and store it with test data.
  7. Kexec into base kernel.

Test Phase (Happens at each boot)

  1. Select the distribution to be used for YCSB from {"Uniform","Exponential","Zipfan"}
  2. Restore the MongoDB qcow2 data disk Image to the disk
  3. Mount the data disk and restart MongoDB daemon.
  4. Start YCSB to generate the workload on MongoDB.
  5. Once finished collect results.
  6. Kexec into next-kernel which keeps switching between Base-Kernel & MGLRU-Kernel when all three distriutions have been tested.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.