RocksDB + SPDK安装指南

本文提供了一步一步的指南来安装和配置RocksDB以使用SPDK。首先,克隆并构建SPDK和RocksDB的特定分支。接着,通过创建配置文件、分配内存和建立blobfs进行设置。RocksDB使用SPDK的SpdkEnv实现,FUSE插件允许将BlobFS挂载为内核文件系统,但目前存在一些限制,如仅支持同步API,不支持原子重命名和目录功能等。
摘要由CSDN通过智能技术生成

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值