Rate This Document
Findability
Accuracy
Completeness
Readability

Obtaining the RocksDB Source Package and Generating the Test Tool

  1. Go to the /home directory.
    cd /home
  2. Obtain the software source package and rename the package.
    wget https://github.com/facebook/rocksdb/archive/refs/tags/v6.10.2.tar.gz
    mv v6.10.2.tar.gz rocksdb-6.10.2.tar.gz
  3. Decompress the software package.
    tar -zxvf rocksdb-6.10.2.tar.gz
  4. Go to the source package directory.
    cd rocksdb-6.10.2
  5. Compile and generate the tool.
    make release -j `nproc`

    The executable file generated by running the make db_bench -j `nproc` command is in debug mode. When the tool is running, assertions in this mode are triggered, affecting the test performance. Therefore, the make release -j `nproc` command is used. If compilation has been performed, run the make clean command and then perform compilation again.

    If the following compilation result is obtained, the compilation is successful.

  6. Verify the tool.
    ./db_bench --help