GithubHelp home page GithubHelp logo

an-hyojun / mysql-plnvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flashsql/mysql-plnvm

0.0 0.0 0.0 55.84 MB

Partitioned Logging in NVM implementation in InnoDB/MySQL

License: GNU General Public License v2.0

Shell 0.35% CMake 0.77% C++ 63.12% C 24.79% Perl 1.22% Roff 0.09% Makefile 0.05% M4 0.01% Vim Script 0.01% Emacs Lisp 0.01% Java 3.55% Python 0.25% CSS 2.31% HTML 0.73% Batchfile 0.01% Objective-C 0.95% Pascal 0.11% Assembly 0.72% PHP 0.98% SourcePawn 0.01%

mysql-plnvm's Introduction

mysql-plnvm

Partitioned Logging in NVM implementation in InnoDB/MySQL 5.7

Author: Trong-Dat Nguyen @ VLDB Lab, Sungkyunkwan University, Korea

Building from the source code

Step 1: Checking PMEM libraries required by PMDK. Ensure below libraries existed in your /usr/local/lib/ or /usr/lib/:

  • libpmem.a libpmemblk.a libpmemlog.a libpmemobj.a libpmempool.a

Step 2: Change the BUILD_NAME variable in the build_mysql.sh file to build your desired approach:

  • Original InnoDB: BUILD_NAME="-DUNIV_TRACE_FLUSH_TIME"

  • PB-NVM BUILD_NAME="-DUNIV_OPENMP -DUNIV_PMEMOBJ_BLOOM -DUNIV_PMEMOBJ_BUF -DUNIV_PMEMOBJ_BUF_PARTITION -DUNIV_PMEMOBJ_BUF_FLUSHER -DUNIV_PMEMOBJ_BUF_RECOVERY"

  • PL-NVM: TBD

Step 3: Build the source code

# ./build_mysql.sh

Addtional config variables:

  • For all NVM-based methods:
innodb_pmem_home_dir=<your_mount_pmem>
innodb_pmem_pool_size=<val> # in MB
  • For PB-NVM
innodb_pmem_buf_size=<val> # in MB
innodb_pmem_buf_n_buckets=<int>
innodb_pmem_buf_bucket_size=<int> # in pages
innodb_pmem_buf_flush_pct=<val> #threshold 0 - 1
innodb_pmem_n_flush_threads=<int> #must smaller than your max # of CPUs
innodb_pmem_flush_threshold=<int> #1 - innodb_pmem_n_flush_threads
innodb_pmem_bloom_n_elements=<val>
innodb_pmem_bloom_fpr=<val>
innodb_pmem_n_space_bits=<int>
innodb_pmem_page_per_bucket_bits=<int>
innodb_aio_n_slots_per_seg
  • For PL-NVM: TBD

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.