GithubHelp home page GithubHelp logo

vmcache's Introduction

vmcache

Code repository for SIGMOD'23 paper Virtual-Memory Assisted Buffer Management. This is the buffer manager implementation. exmap is in a separate repository.

Environment Variables

  • BLOCK: storage block device (e.g. /dev/nvme0n1 or /dev/md0); default=/tmp/bm
  • VIRTGB: virtual memory allocation in GB (e.g., 1024), should be at least device size; default=16
  • PHYSGB: physical memory allocation in GB = buffer pool size, should be less than available RAM; default=4
  • EXMAP: if non-zero, use exmap interface, requires exmap kernel module; default=0
  • BATCH: batch size for eviction in pages; default=64
  • RUNFOR: benchmark run duration in seconds; default=30
  • RNDREAD: if non-zero, run random read benchmark, otherwise TPC-C; default=0
  • THREADS: number of threads; default=1
  • DATASIZE: number of warehouses for TPC-C, number of tuples for random read benchmark; default=10

Example Command Lines

  • TPC-C, 4 threads, 2 warehouses: BLOCK=/dev/nvme0n1 THREADS=4 DATASIZE=2 ./vmcache
  • random read, 10 threads, 1 million tuples: BLOCK=/dev/md0 THREADS=10 DATASIZE=1e6 ./vmcache

Dependencies and Configuration

We need the libaoi library. On Ubuntu: sudo apt install libaio-dev. You will probably also need to set vm.overcommit_memory = 1 in /etc/sysctl.conf. Otherwise larger values of VIRTGB will not work.

If you want to use EXMAP, you need the exmap kernel module.

Citation

Please cite the paper as follows:

@inproceedings{vmcache,
  author    = {Viktor Leis and Adnan Alhomssi and Tobias Ziegler and Yannick Loeck and Christian Dietrich},
  title     = {Virtual-Memory Assisted Buffer Management},
  booktitle = {SIGMOD},
  year      = {2023},
}

Low-Hanging Fruit (TODO)

  • use C++ wait/notify to handle lock contention instead of spinning
  • implement free space management for storage

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.