Git Product home page Git Product logo

mica2's Introduction

MICA 2

A fast in-memory key-value store.

Requirements

  • Linux x86_64 >= 3.0
  • Intel CPU >= Sandy Bridge (Haswell or more recent recommended)
  • Hugepage (2 GiB) support

Dependencies for compilation

  • g++ >= 5.3
  • cmake >= 2.8
  • make >= 3.81
  • libnuma-dev >= 2.0
  • libcurl-dev >= 7.35
  • DPDK >= 16.11
  • libsqlite3-dev >= 3.0 (with -DSQLITE=ON)

Dependencies for execution

  • bash >= 4.0
  • python >= 3.4
  • etcd >= 2.2

Compiling DPDK

     * cd dpdk-16.11
     * make config T=x86_64-native-linuxapp-gcc
     # Optimization: try to increase "CONFIG_RTE_MEMPOOL_CACHE_MAX_SIZE" to 4096 in build/.config (but it can also break mempool initialization)
     * make -j

Compiling MICA

     * cd mica2/build
     * ln -s ../../dpdk-16.11 ./dpdk
     * cmake ..
     * make -j

Setting up the general environment

     * cd mica2/build
     * ln -s src/mica/test/*.json .
     * ../script/setup.sh 8192 8192    # 2 NUMA nodes, 16 Ki pages (32 GiB)
     * killall etcd; ../../etcd-v2.2.1-linux-amd64/etcd &

Setting up the DPDK environment

     * sudo modprobe uio
     * sudo insmod dpdk/build/kmod/igb_uio.ko
     * dpdk/tools/dpdk_nic_bind.py --status
     * sudo dpdk/tools/dpdk_nic_bind.py --force -b igb_uio 0000:02:00.0 0000:02:00.1 0000:04:00.0 0000:04:00.1 0000:83:00.0 0000:83:00.1 0000:84:00.0 0000:84:00.1
     * sudo dpdk/tools/dpdk_nic_bind.py --force -b igb_uio 0000:01:00.0 0000:01:00.1 0000:03:00.0 0000:03:00.1 0000:42:00.0 0000:42:00.1 0000:43:00.0 0000:43:00.1
     * sudo dpdk/tools/dpdk_nic_bind.py --force -b igb_uio 0000:03:00.0 0000:03:00.1

Running microbench

     * cd mica2/build
     * sudo ./microbench 0.00          # 0.00 = uniform key popularity

Authors

Hyeontaek Lim ([email protected])

License

    Copyright 2014, 2015, 2016, 2017 Carnegie Mellon University

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

mica2's People

Contributors

hyeontaek avatar

Watchers

James Cloos avatar  avatar

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.