From 231040fba3b69f788c28096aac694efe91dd88b3 Mon Sep 17 00:00:00 2001 From: Chunyang Hui Date: Mon, 8 Jul 2019 09:52:44 -0400 Subject: [PATCH] doc/blobfs: Update rocksdb version And add the command for release build. Signed-off-by: Chunyang Hui Change-Id: Iec431d1bb41b043a3a58f5e8ca19678c3a5d4c68 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460719 Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: GangCao Reviewed-by: Ben Walker --- doc/blobfs.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/blobfs.md b/doc/blobfs.md index 6449f1354d..221abed4d4 100644 --- a/doc/blobfs.md +++ b/doc/blobfs.md @@ -14,21 +14,26 @@ make ~~~ Clone the RocksDB repository from the SPDK GitHub fork into a separate directory. -Make sure you check out the `spdk-v5.6.1` branch. +Make sure you check out the `spdk-v5.14.3` branch. ~~~{.sh} cd .. -git clone -b spdk-v5.6.1 https://github.com/spdk/rocksdb.git +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. -(Note: add `DEBUG_LEVEL=0` for a release build.) ~~~{.sh} 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`). + +~~~{.sh} +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. ~~~{.sh}