Coder Social home page Coder Social logo

bamboo-public's Introduction

DBx1000-Bamboo

The repository is built on DBx1000: https://github.com/yxymit/DBx1000

Staring into the Abyss: An Evaluation of Concurrency Control with One Thousand Cores
Xiangyao Yu, George Bezerra, Andrew Pavlo, Srinivas Devadas, Michael Stonebraker
http://www.vldb.org/pvldb/vol8/p209-yu.pdf

The major changes made in this repository:

  • added support for Bamboo and its optimizations. Bamboo is a concurrency control protocol proposed in:
    Releasing Locks As Early As You Can: Reducing Contention of Hotspots by Violating Two-Phase Locking
    Zhihan Guo, Kan Wu, Cong Yan, Xiangyao Yu
    link (TBA)
  • focused on support for: NO_WAIT, WOUND_WAIT, WAIT_DIE, SILO, IC3
  • changed the memory allocation for lock entry to be static
  • added support for MCS Lock in addition to mutex and spinlock
  • modified test scripts for easier evaluation

Build & Test

To test the database

python test.py experiments/default.json

Configure & Run

Supported configuration parameters can be found in config-std.h file. Extra configuration parameters include:

    UNSET_NUMA        : default is false. If set false, it will disable numa effect by interleavingly allocate data. 
    NDEBUG            : default is true. If set true, it will disable all assert()
    COMPILE_ONLY      : defalut is false. If set false, it will compile first and then automatically execute. 

Options to change/pass configuration:

  • Option 1: use basic configurations provided in experiments/default.json. overwrite existing configurations or pass extra configurations through arguments. e.g. python test.py experiments/default.json WORKLOAD=TPCC NUM_WH=1
  • Option 2: directly copy config-std.h to config.h and modify config.h. Then compile using make -j and execute through ./rundb

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.