key-value-separation · shipping · also KV separation

Key-value separation

Key-value separation stores values outside the main key index and retains references in that index.

Related Observatory article: Read on hesela.com

Separating values does not eliminate cleaning. [1]

In WiscKey, the LSM-tree sorts keys and value references; values append to a separate log. Deleting a key leaves garbage in that log. Ignoring pointer size, index amplification 10 and 16 B keys give (10 x 16 + 1024) / (16 + 1024) = 1.14 for 1 KB values, or 2.8 for 64 B values. [3]

Figure 12 compares a 4 GB scan of a 100-GB database, using 16-B keys and 64-B values at its smallest size. WiscKey's reported throughput was about one twelfth of LevelDB's when randomly loaded, versus about 25% lower when sequentially loaded. These are historical measurements, not a general separation penalty. [3]

WiscKey's collector reads the tail, checks liveness in the tree, copies live values to the head, then frees space; log records include keys. [3]

HashKV's Figure 2 reports vLog prototype write amplification of 19.7 for updates and 1.6 for loading. It loaded 40 GiB of 1-KiB pairs, then issued 40 GiB of Zipf(0.99) updates with 12 GiB of reserved space; its write cache was disabled. The ratio is total device-write bytes divided by inserted or updated bytes. This differs from section 4.1's 64 MiB cache defaults. HashKV's hash grouping avoids per-record tree lookups during cleaning. [4]

RocksDB's integrated BlobDB background-extraction path creates immutable, key-sorted blob files; separation therefore does not imply unsorted values. Values at or above min_blob_size qualify for blob files; smaller ones stay inline. Compaction relocates blobs and updates references without separate index operations. It supports WAL recovery and differs from legacy StackableDB. [1] With an age cutoff of 0.25, blobs in the oldest 5 of 20 blob files are relocated when compaction reaches them. [1] [5]

Relations

related
Parallax, Log-structured merge-tree, Value log, Database write amplification, Hybrid log, FAWN-DS, Tucana, Kreon, Bourbon, KVell, WiscKey, HashKV, BlobDB (RocksDB)

Advantages

  • In WiscKey, keeping keys and value references in the sorted index reduces its size relative to also storing values there. [3]

Limitations

  • Unreferenced values occupy space until garbage collection runs. The RUM paper frames read, update and space tradeoffs as a conjecture, not a universal proof that every engineering improvement must worsen another cost. [3, 1, 6]
  • In WiscKey's collector, relocated records and the updated tail must be durable before old space is reclaimed. This is a reclamation protocol, not a universal synchronous-write requirement for every separated store. [3]
  • HashKV's segment-group scan also checks the write cache and still updates index addresses after moving survivors. Its hot/cold extension leaves tagged metadata in the group; the separate cold-data log uses vLog-style cleaning. The group's no-lookup rule does not describe every collector in the system. [4]
  • RocksDB v11.8.1 also has experimental Blob Direct Write v1, disabled by default. Qualifying Put values become BlobIndex references before WAL/memtable insertion. WAL replay of active direct-write files is unsupported; flush/SST creation must first make them manifest-visible. This differs from background extraction. [7]

Citations

  1. RocksDB wiki: BlobDB, integrated implementation, garbage collection and configuration (page revised 22 September 2022). (accessed 2026-11-03)
  2. Lu et al. WiscKey: Separating Keys from Values in SSD-conscious Storage. FAST 2016, sections 3.3-3.5 and 4.1.2, Figure 12. (accessed 2026-11-11)
  3. Chan, Li, Lee and Xu. HashKV: Enabling Efficient Updates in KV Storage via Hashing. USENIX ATC 2018, section 2.2 and Figure 2; sections 3.2-3.4 and 4.1. (accessed 2026-11-11)
  4. RocksDB include/rocksdb/advanced_options.h, release v9.11.2, blob options. (accessed 2026-10-16)
  5. Athanassoulis et al. Designing Access Methods: The RUM Conjecture. EDBT 2016, pp. 461-466, sections 1-4. DOI: 10.5441/002/edbt.2016.42. (accessed 2026-11-22)
  6. RocksDB v11.8.1: advanced_options.h, experimental direct-write v1 contract. (accessed 2026-12-02)

Further reading

  1. Key-value separation: the cleaning bill moves elsewhere (accessed 2026-10-12)
Sources & caveats
  • Implementation details come from the RocksDB wiki and source, maintained by Meta, so they are not independent of the code owner.
  • The 1.14 and 2.8 figures are formula results with the pointer size ignored, not measurements; the same formula gives 1.5 for 256 B values and 1.04 for 4 KB values.
  • The unseparated write amplification of 3.1 and 14 (1 GB and 100 GB databases) and the 10% and 35% garbage-collection throughput drops are from the 2016 paper's own tests.
  • The 19.7 figure is one workload on one university prototype; the paper reports 19.1 and 7.9 for two unseparated stores with default settings.
  • Defaults are from release v9.11.2 and later versions change them; 0.25 x 20 = 5 files.
  • 2026-10-30 source-scope correction: separate prototype-specific statements from the integrated implementation; preserve the existing numerical examples and their prior limitations.
  • Figure 12's axis specifies 16-B keys and varying values; the surrounding prose calls the smallest case 64-B pairs. We follow the axis and section 4.1's fixed-key method.
  • Figure 12 used a 500-GB Samsung 840 EVO, Linux 3.14/ext4, 64 GB memory and disabled compression. No current-device prediction or independent reproduction is implied. [3]

JSON: /data/terms/key-value-separation.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Key-value separation. Hesela. 2026-12-02. https://hesela.dev/terms/key-value-separation/