Giter Site home page Giter Site logo

lsm-trie's Introduction

Notes

This LSM-trie implementation does not use any user-space cache. Its read performance is bottlenecked by I/O. If you're looking for a high-performance SSD KV-store for fast write, read, and range search, take a look at RemixDB.

Build

Compiler:

clang or gcc (change it in Makefile).

openssl for SHA1 function.

Build:

$ make all

Run

Get help information of the get/set tests:

$ ./mixed_test -h

Get the help information to run the read performance with different store sizes.

$ ./staged_read -h

storage space configuration

You need to change the cm_conf1.txt to configure the storage devices (or the file specified with '-c' option).

At the beginning of the file, every two lines describe a storage device. It could be a raw block device (e.g., /dev/sdb), or a regular file in your file system. If it's a block device, than the second line would be set to '0', which means the capacity of the device should be automatically detected. Make sure you have permission to use raw block devices (being the root user or being added to the disk group).

/dev/sdb  -- block device
0         -- auto-detect capacity

Otherwise, for regular files you should specify the file size, in the unit of GBs.

/home/me/bigfile -- a regular file
100           -- allocate 100GB for this file

In this way, you can add a mix of multiple devices/files. After declaring all the storage options, add a '$' at the next line to mark the end of the storage section.

After the '$' line, you need to give the mapping information from level ID to storage ID, both starting from 0. The first line specifies the device ID used by bloom-container. The rest five lines specify the mapping from Level 0 to Level 4. For example:

/dev/sdb  -- Storage 0
0
/dev/sdc  -- Storage 1
0
$
0         -- Bloom Containers use sdb
0         -- Level 0 is on sdb
0         -- Level 1 is on sdb
1         -- Level 2 is on sdc
1         -- Level 3 is on sdc
1         -- Level 4 is on sdc

A simplest configuration would be putting everything on one device. It looks like this:

/dev/sdb
0
$
0
0
0
0
0
0

Or similarly using a file:

mybigfile
100
$
0
0
0
0
0
0

lsm-trie's People

Contributors

wuxb45 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.