Running Speedb on dedicated servers
Speedb is a key-value storage engine that keeps RocksDB's API while reworking parts of its write path. Benchmarking it fairly needs hardware that nobody else touches, which is exactly what a dedicated server is.
What is Speedb?
An embedded key-value library, compatible with the RocksDB API, that began as a fork to improve behaviour under heavy writes and large data sets. Applications that already use RocksDB can link against Speedb instead without code changes, since it keeps the same headers and namespace. Its open-source edition is published under the Apache 2.0 licence. The company behind it was acquired in 2024, so look at the repository's recent activity and decide whether you will track it or pin a version.
What does it change compared with RocksDB?
Mostly the write path and memory handling. The headline features:
- A sorted hash memtable that speeds up writes and reads of recent data compared with the default skip list.
- A smoother write flow that slows writers gradually as compaction falls behind, instead of sudden stalls.
- A paired Bloom filter that uses less memory for the same false positive rate.
- Shared memory management across several database instances in one process.
- More options that can be changed while the database is running.
Whether these help depends on your workload, which is why measuring on your own data matters more than published charts.
How do I build it?
With CMake and the usual compression libraries. A release build with LZ4 and Zstandard support:
apt install build-essential cmake libgflags-dev libsnappy-dev liblz4-dev libzstd-dev zlib1g-dev git clone https://github.com/speedb-io/speedb.git && cd speedb cmake -B build -DCMAKE_BUILD_TYPE=Release -DWITH_LZ4=ON -DWITH_ZSTD=ON -DWITH_GFLAGS=ON -DPORTABLE=OFF cmake --build build -j"$(nproc)"
PORTABLE=OFF tunes the build for the server's own processor; turn it on if you build on one machine and deploy on another generation. The build produces a shared library named libspeedb and the familiar tools, including db_bench.
How do I benchmark it fairly against RocksDB?
Same machine, same data, same options, several runs, and long enough for compaction to reach steady state. Short runs only measure the memtable. Prepare a dedicated NVMe filesystem, drop caches between runs, and record the latency percentiles as well as throughput.
./build/db_bench --db=/mnt/nvme/bench --benchmarks=fillrandom,overwrite,readwhilewriting --num=200000000 --value_size=256 --key_size=24 --threads=16 --max_background_jobs=12 --compression_type=lz4 --statistics --histogram sync; echo 3 > /proc/sys/vm/drop_caches
Repeat with the RocksDB build at the same options and compare p99 and p99.9 write latency, write stalls and space used, not only operations per second. A dedicated server removes the neighbour noise that makes cloud benchmarks hard to repeat.
Which applications can use it?
Anything that embeds RocksDB through its C++ API or through bindings that load the shared library. Stream processors with RocksDB state stores, key-value services, queue systems and custom databases are the usual candidates. Language bindings that bundle their own RocksDB copy need to be rebuilt against Speedb to switch.
Which hardware suits it?
Fast NVMe first, then cores for background compaction, then memory for block cache and memtables. Every model in the Business and Enterprise lines has two NVMe drives that can run as a software RAID 1 for safety or as two separate filesystems for separate databases.
| Use | Machine | Storage |
|---|---|---|
| Benchmarking and development | ESSENTIAL-S | 2x 512 GB SSD NVMe, Soft RAID |
| Production service, moderate data | BUSINESS-3 2024 | 2x 960 GB SSD NVMe, Soft RAID |
| Large data sets, heavy writes | ENTERPRISE-a3 2026 | 2x 1.92 TB SSD NVMe |
BUSINESS-3 2024 pairs 12 cores with 64 GB DDR5 for $141.60 a month. Our RocksDB servers page covers tuning the upstream engine, and NVMe vs SATA SSD vs HDD explains why drive type matters so much for LSM trees.
How do I protect the data?
Use the engine's checkpoint feature to make consistent, hard-linked copies, then archive them off the machine. Checkpoints are fast because they share unchanged files with the live database. Replicate at the application level if you need a second live copy, and test restores on a spare machine.
Machines for Speedb workloads
Lowest monthly price of each model across its data centres; the model page shows the price in every location.
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-S | AMD Ryzen 7 9700X | 8 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $46.20 |
| ESSENTIAL-M | AMD Ryzen 9 9900X | 12 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $70.80 |
| BUSINESS-2 2024 | AMD EPYC 4344P | 8 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $109.80 |
| BUSINESS-3 2024 | AMD EPYC 4464P | 12 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $141.60 |
| BUSINESS-4 2026 | AMD EPYC 4585PX | 16 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $212.40 |
| ENTERPRISE-a3 2026 | AMD EPYC TURIN 9355 | 32 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $481.80 |
Benchmark on hardware that nobody else touches, then size production from your own numbers.
Related pages
RocksDB servers
Run RocksDB-backed systems on NVMe bare metal: LSM basics, compaction and write amplification, block cache, compression per level and db_bench tests.
Read moreDatabase servers
NVMe machines with large memory for PostgreSQL, MySQL, MariaDB and MongoDB, from a single primary to replicated pairs.
Read moreNVMe vs SATA SSD vs HDD
Throughput, latency and cost per terabyte of the three drive types in our machines, and which job suits each.
Read moreBusiness servers
AMD EPYC or Intel Xeon processors, DDR5 memory and a guaranteed 3 Gbps port.
Read moreQuestions and answers
Is Speedb compatible with RocksDB?
Yes. It keeps the RocksDB API, headers and namespace, so applications can link against Speedb without code changes.
What does Speedb improve over RocksDB?
Mainly the write path and memory use: a sorted hash memtable, smoother write flow control, a paired Bloom filter and shared memory management.
How should I benchmark Speedb?
Run db_bench on the same machine and data against both engines, long enough for compaction to settle, and compare latency percentiles and stalls.
What licence does Speedb use?
The open-source edition is released under the Apache 2.0 licence.
Which drives suit Speedb?
NVMe drives. LSM-tree engines write and compact constantly, so fast, low-latency storage has the biggest effect on performance.