SPDK 代码clone : https://github.com/spdk/spdk
git clone https://github.com/spdk/spdk.git
cd spdk
./configure
make
Clone the RocksDB repository from the SPDK GitHub fork into a separate directory. Make sure you check out the spdk-v5.14.3
branch.
cd ..
git clone -b spdk-v5.14.3 https://github.com/spdk/rocksdb.git
Build RocksDB. Only the db_bench
benchmarking tool is integrated with BlobFS.
cd rocksdb
make db_bench SPDK_DIR=path/to/spdk
Or you can also add DEBUG_LEVEL=0
for a release build (need to turn on USE_RTTI
).
export USE_RTTI=1 && make db_bench DEBUG_LEVEL=0 SPDK_DIR=path/to/spdk
Create an NVMe section in the configuration file using SPDK's gen_nvme.sh
script.
scripts/gen_nvme.sh > /usr/local/etc/spdk/rocksdb.conf
V