value-log · shipping · also vLog

Value log

A value log is an append-oriented record store whose values are located through a separate index.

Related Observatory article: Read on hesela.com

In the FAST 2016 key-value separation design, each log record stores key size, value size, key and value, while the index holds the value's log offset and size. Moving live records also changes their index references. Cleaning reads a chunk of several megabytes from the tail, appends still-valid values at the head and calls fsync on the log, then records the new addresses and tail offset in the index before freeing the chunk. A value log is not automatically a write-ahead log. [1]

A recovery role requires additional machinery. WiscKey's LSM-log removal optimization scans the value log from a persisted head marker to rebuild missing index entries. This relies on the paper's in-order index recovery and append-prefix filesystem assumption; it is not guaranteed by the phrase 'append-only'. Its asynchronous buffer may lose writes after a crash. The paper's ALICE check used a short sequence of Put calls, not arbitrary workloads. [1]

For a chosen cleaning batch, sum region sizes S and surviving bytes L before forming a ratio. Copying L once and refilling S-L once writes S log bytes, and the ratio S/(S-L) excludes index updates. A simple average of region live percentages can be wrong when sizes differ, and a zero reclaimed-byte denominator is undefined.

Relations

related
Bitcask, Parallax, Key-value separation, Log-structured merge-tree, Database write amplification, Hybrid log, Tucana, Kreon, WiscKey, HashKV

Advantages

  • With a 16-byte key, a 1 KB value, an index write amplification of 10 and a log amplification of 1, the paper's effective write amplification is (10 x 16 + 1024) / (16 + 1024) = 1.14. [1]

Limitations

  • An index lookup can require a separate value fetch; buffer or cache hits need not cause a physical device read. WiscKey's range-scan cost also depends on loading order, value size and parallel-read throughput. [1]

Citations

  1. Lu et al. WiscKey: Separating Keys from Values in SSD-conscious Storage. FAST 2016, pp. 133-148, sections 3.2-3.4 and 4.1.4. (accessed 2026-11-11)

Further reading

  1. Key-value separation: the cleaning bill moves elsewhere (accessed 2026-10-19)
Sources & caveats
  • wisckey re-read 2026-10-23 for the record tuple, the head and tail cleaning sequence, its fsync ordering and the 1.14 example.
  • The S/(S-L) byte accounting follows a companion analysis, which is listed but not cited in prose. It is byte accounting, not a collector-performance prediction.
  • The database-write-amplification entry links here because separating values from the index is a way to lower index write amplification.
  • 2026-10-30 review: sections 3.3.3-3.4.2 and 4.1.4 distinguish the base description, its optimization and the reported validation scope. No independent crash experiment was performed.

JSON: /data/terms/value-log.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Value log. Hesela. 2026-11-14. https://hesela.dev/terms/value-log/