Skip to content

ZBTree A Hotness-Aware B+-Tree for Persistent Memory

Notifications You must be signed in to change notification settings

HNUSystemsLab/ZBTree

Repository files navigation

ZBTree

ZBTree: A Write Optimized High Performance B+-Tree for Persistent Memory

Dependencies

PMDK

TBB

YCSB

Please follow their guidence to install related dependecies.

Bind PMem

Our system requires Optane Persistent memory device to run. If you're new to this field, please refer to this link to properly config your PMem device before the next steps. First, you need to mount your PMem to your system:

sudo mkdir /mnt/pmem
sudo mkfs.ext4 /dev/pmem0
sudo mount -o dax /dev/pmem0 /mnt/pmem

Now, tape the commond to show mounted list and you should see the output like this.

sudo mount -l|grep pmem
/dev/pmem0 on /mnt/pmem type ext4 (rw,relatime,dax=always)

If you use different PMem path, you should also change the path in all_tree.hpp

How to build

Build ZBTree:

call make to generate dynamic lib for ZBTree and binary for benchmark.

Build other indices:

change indices name in command line: For example, if you want to compile FP-Tree:

make fptree

generate YCSB workload for ZBTree

after generate workload follow YCSB, please change the path in main.cpp to your workload's path

How to Run

sudo ./main {workload_type} {threads}

To run in different workloads and threads, just change the args in command line.

Other tests:

Add defination during make:

  -DLATENCY : tail latency test
  -DVAR_TEST : long value test
  -DPCMM : bandwidth and cache hit rate test
  -DRUN_SIMPLE : simple test that insert key[1-1000] and search them

See .sh files for more details.

About

ZBTree A Hotness-Aware B+-Tree for Persistent Memory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published