Skip to content

cheniujh/DZR-rocksdb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Zone Redistribution (DZR)

This is a ZenFS plugin for optimizing throughput and reducing write amplification on ZNS (Zoned Namespaces SSDs).

Quick Install Guide :

git clone https://github.com/facebook/rocksdb.git
cd rocksdb
pushd .
git clone https://github.com/hyu-splab/DZR-rocksdb.git plugin/DZR
cd plugin/DZR
mv zenfs ../ && cp build/* ../../build/ 
cp util/* ../../util/ && cp tools/* ../../tools/ # Optional : If you need YCSB benchmark
popd

Build and install rocksdb with zenfs enabled :

sudo DEBUG_LEVEL=0 ROCKSDB_PLUGINS=zenfs make -j$(nproc) db_bench install
mv db_bench ./build/db_bench
pushd .
cd plugin/zenfs/util/
make    # Before, you need to set $CPLUS_INCLUDE_PATH and $LD_LIBRARY_PATH 
popd

Run db_bench Benchmark :

cd build
./zenfs_test.sh    # You can change --aux_path, --zbd, --fs_uri, etc.

Note :

the mq-deadline scheduler must be set manually to ensure that the regular write operations used by btrfs are delivered to the device in sequential order. For a NVMe zoned namespace device /dev/nvmeXnY, this is done with the following command:

echo mq-deadline > /sys/block/nvmeXnY/queue/scheduler

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.1%
  • Python 4.5%
  • Shell 2.5%
  • Other 0.9%