Research notes / Storage engines
Key-value separation: the cleaning bill moves elsewhere
Published 12 October 2026 / Updated 2 December 2026 / Source review and computed examples
Keeping large values out of an LSM-tree can save repeated writes. It does not make obsolete values free to reclaim. Count the cleaning traffic, including the index updates it causes, before calling the design cheaper.
On this page23 sections
Sort references, clean values
WiscKey keeps keys and value addresses in the tree, with records in an appended value log. Its collector reads the tail, checks record liveness against the index, moves survivors and updates their addresses. The log also carries keys and length fields: it is not pure value payload. Range scans fetch separated values with parallel prefetching. [1, sections 3.2-3.3]
That is a different optimization from avoiding unnecessary lookup probes. It changes the bytes moved when maintaining the index. Logical deletion remains separate from physical reclamation.
Range scans: key order and value locality
WiscKey detects sequential iterator access and queues upcoming value addresses for parallel prefetch. That overlaps reads rather than reorganizing the log. Its range-query CPU discussion reports 32 background prefetch threads. Count that concurrency when comparing engines. [1, sections 3.3.1 and 4.1.6]
Load order matters: Figure 12 compares scans after random and sequential loading. With small values, the randomly loaded case was much slower than the sequentially loaded case relative to LevelDB. These historical results do not establish a fixed penalty on current SSDs. [1, section 4.1.2]
Integrated BlobDB's background-extraction path makes a different placement choice: flushes and compactions produce immutable, key-sorted blob files. This permits readahead during iteration. Sorting within each file does not imply that an entire query reads one contiguous device range. Separation therefore does not require append-order value placement. [3, Design]
| Control | Record |
|---|---|
| Requested data | Keys only or returned values; record and byte counts. |
| Placement history | Load order, intervening updates and value relocation. |
| Read resources | Cache state, foreground and prefetch threads, CPU time, I/O bytes and operations. |
| Maintenance | Concurrent compaction and cleaning, plus work left pending. |
Use these controls alongside the cleaning budget below. Lower write traffic alone cannot predict scan latency. Corpus: WiscKey and key-value separation.
Bitcask: budget the complete keydir
Bitcask appends records and locates their latest versions through a RAM-resident hash index. The complete keydir must fit in memory; a large value store does not remove that constraint. Merging copies live records from older files, while hint files accelerate rebuilding the keydir at startup. An existing keydir can instead be shared within one Erlang VM. [Bitcask, pp. 2-5]
This differs from WiscKey's ordered LSM-tree index. Compare key count, key sizes, memory budget and scan requirements as well as value volume. A point-lookup design is not an interchangeable ordered index. [Bitcask, pp. 3-5] [WiscKey, sections 3.2-3.3]
Synchronization also depends on the implementation. At revision d84c8d9, sync_strategy defaults to none. The {seconds, N} setting requires the calling application to schedule synchronization; it does not install a timer by itself. [configuration]
The same revision selects the Erlang I/O backend by default. That backend warns that o_sync is unsupported and opens the file without it. Its explicit file_sync path calls file:sync. Check the selected backend and completed sync operations before treating write acknowledgement as durable. These are source-level observations, not a crash test or a claim about every Bitcask deployment. [I/O dispatch] [Erlang backend]
Haystack: a restart index can be stale by design
Haystack illustrates another reason to separate objects from filesystem metadata. Its 2009 engineering account describes packing images into large store files and using an in-memory lookup to locate them. Index records follow committed store records asynchronously. The restart accelerator is therefore not the authoritative image store. [Haystack, Write and Read Operation]
Deletion changes the stored needle without updating the index file. After restart, a stale index entry can still point at that needle: the read path must reject the stored delete flag. Compaction separately recovers space by copying retained records into a replacement store. [Haystack, Delete Operation and Compaction] The paper adds the concurrency rule: deletes reach both files during copying. At the end, further modifications are blocked while the files and in-memory structures are switched atomically. [Haystack, section 3.6.1]
The OSDI paper distinguishes missing entries for newly appended needles from stale deletion information in older entries. Recovery scans the unindexed tail; later reads detect deletions from the stored needles. The index-record Flags field is unused in that design, so its presence is not evidence of current deletion state. [Haystack, section 3.4.4 and Table 2]
One object read is not necessarily one physical disk operation. Even with filesystem metadata in memory, an image can span extents or RAID stripe boundaries. Report the observation layer when comparing I/O: application reads and device operations are different counts. [Haystack, section 3.4.5]
For a comparison with Bitcask, ask which records rebuild the lookup, which state decides whether an object is visible, and which operation actually reclaims bytes. A fast restart does not answer the other two questions. These are historical design comparisons, not current product guarantees or a Haystack benchmark.
RUM: compare the same costs before choosing a winner
The RUM conjecture organizes read, update and memory tradeoffs. The original paper does not establish a universal performance bound; it explicitly discusses improving all three costs through engineering or computation. [RUM, sections 1-4]
WiscKey illustrates why the accounting boundary matters. A smaller tree can reduce compaction traffic and fit more of the index in RAM, while fetching a separated value still requires another lookup step. Range scans must gather scattered values, and reclamation has its own work. [1, sections 3.2-3.3]
| Budget | Record together | Misleading shortcut |
|---|---|---|
| Reads | Point hits, misses and scans; cold/warm cache; bytes and operations per request. | Counting index probes as device reads. |
| Updates | Logical input bytes; foreground and background writes over the same interval; pending cleaning work. | Ending the run before compaction or reclamation. |
| Space | Live-data denominator; resident RAM; steady and peak disk footprint. | Comparing one index with another engine's total footprint. |
| Service contract | Durability, read visibility, CPU budget and latency distribution. | Treating equal throughput as equal guarantees. |
Use this checklist to interpret the calculations below: the cleaning model counts writes, not all read, memory and CPU costs. It cannot establish an engine's overall ranking. Keep database-to-device traffic separate from device-internal NAND writes, and report unfinished maintenance instead of silently treating it as zero cost. Definitions: read amplification, database write amplification and space amplification.
The benchmark qualification worth reading
HashKV groups values by hashing their keys so cleaning can operate within a group without per-record LSM validity lookups. It also studies hot/cold separation and keeping small values inline. [2, section 3]
Its comparison uses the authors' own WiscKey-inspired vLog implementation. The default testbed uses six SSDs in RAID 0, asynchronous writes and a 64 MiB write cache; crash consistency, hotness awareness and selective separation are disabled unless under evaluation. Experiment 8 separately examines crash-consistency overhead. [2, sections 4.1 and 4.4]
Our interpretation: a throughput ranking from that default setup is not a ranking of equally durable services. Match acknowledgement rules and recovery guarantees before transferring the result. This does not invalidate the paper; it identifies what the experiment measures.
What HashKV keeps local
A HashKV segment group combines one main segment with its overflow log segments. The collector scans this group and checks the write cache; later versions of each key supersede earlier ones. It still updates relocated values' addresses in the LSM-tree. Choosing the group with most writes is a heuristic, not proof of maximum reclaimed bytes. [2, sections 3.2-3.3]
Hot/cold separation leaves tagged metadata in the group while moving cold values elsewhere. That cold-data log uses vLog-style cleaning: avoiding per-record tree lookups in the group does not remove every cleaning lookup from the system. [2, section 3.4]
Who decides which value survives?
Key-value separation describes placement, not a single cleaning algorithm. Compare the source of liveness information and the work that remains after it has been consulted.
| Design | Liveness decision | Work still required |
|---|---|---|
| WiscKey | Consult the LSM-tree for records in the tail chunk. | Persist survivors and their references before reclaiming old space. [1, section 3.3.2] |
| HashKV | Scan the segment group and check the write cache. | Update relocated addresses; cold-log cleaning remains separate. [2, sections 3.3-3.4] |
| Integrated BlobDB | Encounter blob references during LSM compaction. | Relocate selected blobs and rewrite references within compaction. [3, Design] |
Our interpretation: removing a validity lookup does not remove address maintenance, survivor copying or the persistence protocol. Measure these costs separately. Keep the comparator's identity too: HashKV evaluated its own WiscKey-inspired vLog baseline, as qualified above.
This comparison adds no engine execution or new performance result. The byte model below isolates a different question: how much modeled traffic remains for a specified survivor fraction.
Tucana and Kreon: who controls mapped writes?
Tucana replaces sorted-table merging with a buffered tree and separated records. Its read path uses the committed version: insert completion and visibility to readers are distinct. [11, sections 3.1-3.4]
The 2016 H-Tucana large-dataset load experiment exposes a limit: the authors attribute excess traffic to memory pressure and premature eviction of leaf pages. Their proposed remedy includes eviction control and more buffering. This is their explanation, not an independently reproduced causal result. [11, section 4.3]
Kreon takes the writeback policy further. Its research design uses kmmap, a custom kernel path with per-page priorities and delayed eviction, alongside indexed partial spills. This is not a result obtained by merely replacing reads and writes with standard mmap. [12, sections 3.2.1-3.2.2]
Its L0 checkpoint reduces recovery work because a persisted log suffix can rebuild that level. Checkpoint frequency therefore cannot substitute for the log-persistence and acknowledgement rules. Live-value relocation still requires index-reference updates. [12, sections 3.2.1 and 3.2.3]
The public Kreon repository also distinguishes Debug, its default build, from optimized Release builds. Record the build configuration as well as memory budget, page policy, durability and read visibility before comparing engines. [13, Building]
Source synthesis, not a new engine benchmark. Corpus: Tucana and Kreon.
An explicit cleaning budget
The following is our deliberately simplified model, not a measured WiscKey, HashKV or RocksDB configuration. All records have a key of K bytes and a value of V bytes. A tree reference uses P bytes, and a log record adds H header bytes. Let C be total tree bytes written per byte inserted into that tree, including its initial sorted-table write and later rewrites.
A selected cleaning region of S bytes contains a live fraction u. Copying its survivors costs uS bytes and frees only (1-u)S net space. Per new log byte, relocation therefore costs u/(1-u) bytes. Including the original append gives 1/(1-u). This is a steady-state flow assumption with a fixed survivor fraction, not a model of how a real collector selects regions.
We additionally charge the same tree-write factor for every relocated record's new pointer. Leaving that out would hide some of the cost of moving live values. The two counterfactual layouts use the same C to isolate record size.
Inline bytes = C(K + V)
Separated bytes = [C(K + P) + K + V + H] / (1 - u)
Both numerators count modeled engine writes per new logical key-value insertion. Divide by K+V for a byte-write ratio. No WAL, filesystem metadata, reads, compression, cache effects, alignment or NAND program operations are included. This is therefore neither end-to-end write amplification nor a speed prediction.
The saving can change sign
| Value, B | Live fraction, % | Inline, B | Separated, B | Separated / inline |
|---|---|---|---|---|
| 128 | 0 | 1440 | 472 | 0.328 |
| 128 | 50 | 1440 | 944 | 0.656 |
| 128 | 90 | 1440 | 4720 | 3.278 |
| 1024 | 0 | 10400 | 1368 | 0.132 |
| 1024 | 50 | 10400 | 2736 | 0.263 |
| 1024 | 90 | 10400 | 13680 | 1.315 |
With a 1024-byte value, separation stops saving modeled writes when the selected region's live fraction reaches 86.85%. This threshold follows algebraically from the displayed equations. It is not a recommended disk-fill limit. With a 16-byte value, separation is already more expensive at u=0 under these inputs.
The critical denominator is reclaimed space, not scanned space. Whole-database occupancy cannot be substituted for u: two equally full databases may offer very different cleaning victims. The same warning applies when reasoning about SSD over-provisioning, but the two collectors operate at different layers.
All 30 cases, CSV, provenance JSON and executable model. No benchmark was run and no statistical confidence interval applies to these deterministic examples.
Sum bytes before averaging cleaning costs
For multiple selected regions, an unweighted average of their live fractions can hide where the bytes are. Let S be their combined size and L their combined live bytes. Copy the survivors once, then refill the net free space D = S - L once. The log writes L + D = S bytes, so its write ratio is S / D. The applicable live fraction is L / S, weighted by region size.
| Batch | Region sizes, MiB | Live bytes, MiB | Byte-weighted live, % | Net reclaimed, MiB | Log writes / reclaimed |
|---|---|---|---|---|---|
| Equal-size regions | 50 + 50 | 5 + 45 | 50 | 50 | 2.00 |
| Larger region mostly live | 20 + 80 | 2 + 72 | 74 | 26 | 3.85 |
| Larger region mostly obsolete | 80 + 20 | 8 + 18 | 26 | 74 | 1.35 |
The shortcut 1 / (1 - 0.5) predicts 2 for every row. Actual batch accounting gives 2.00, 3.85 and 1.35. Even equal region sizes do not justify averaging individual cost ratios: the first row's ratios are about 1.11 and 10. Their arithmetic mean is 5.56, while their combined ratio is 2.00. Weight those ratios by net reclaimed bytes, or simply divide the summed write bytes by the summed reclaimed bytes.
This extension counts only the value-log byte budget. It does not replace the earlier model's separate charge for index updates. It assumes size-preserving copying, no additional invalidations during the batch, no compression or deduplication, and no padding. It does not decide which regions to clean.
Why a classic "write cost" can be twice the write ratio
Rosenblum and Ousterhout's LFS analysis counts reads as well as writes. Under its whole-segment-read assumption, refilling reclaimed space gives total transfer cost 2 / (1 - u), whereas writes alone give 1 / (1 - u). A known-empty segment need not be read: its total cost becomes 1, not 2. This exception requires knowing it is empty. [4, section 3.4]
The same paper uses a segment's youngest-block age to estimate stability in its cost-benefit cleaner. That age is a policy heuristic, not a measured future lifetime. A byte budget cannot predict the selected regions without a workload and selection policy. [4, section 3.5]
Record selected, surviving, read and net-reclaimed bytes separately. When no space is reclaimed, a cost per reclaimed byte is undefined, not zero. Our six batch examples include both empty-region read policies and the all-live case; standalone code and JSON with inputs and hashes make the arithmetic checkable.
Do not treat every separated layout as WiscKey
RocksDB's integrated BlobDB background-extraction path writes immutable, key-sorted blob files during flush or compaction. Its min_blob_size threshold leaves smaller values inline; garbage collection is integrated with compaction. References can then be updated as entries are encountered, without extra LSM operations. Our per-relocation pointer-update charge does not describe that mechanism. The documentation distinguishes this implementation from legacy BlobDB.[3]
BlobDB: identify the write path before trusting WAL recovery
The background-extraction description is not universal. RocksDB v11.8.1 includes an opt-in, experimental Blob Direct Write v1 path. A qualifying Put writes a blob before the transformed batch enters the WAL and memtable; they carry a BlobIndex instead of the full value. The option defaults to false. [Options] [Write transformer]
| Path | Value placement | Recovery interpretation |
|---|---|---|
| Background extraction | Full values enter WAL/memtable before later extraction into key-sorted blob files. | Interpret the ordinary WAL and synchronization options; enabling separation does not itself request a synchronous write. |
| Direct Write v1 | Qualifying values are externalized on the write path; WAL/memtable receive references. | Active direct-write files are outside the supported WAL-replay recovery scope until flush/SST creation makes them MANIFEST-visible. |
Both the feature's design note and its versioned option contract state the recovery restriction. A successful read from the running primary can use an active blob file before MANIFEST registration; this does not demonstrate that a restart can recover that file. [Design and limitations] [Versioned contract]
The upstream close test writes four keys, closes and reopens successfully with avoid_flush_during_shutdown set. Direct-write close forces a flush: that test is not an abrupt-crash experiment. Checkpoint and backup operations must flush pending direct-write state first; paths unable to do so can return NotSupported. [Reviewed tests] [Versioned contract]
Threshold equality is also explicit in PutCF: only values smaller than min_blob_size stay inline. By contrast, TimedPutCF passes through without direct-write separation. Specify the API as well as the options in a comparison. More partitions control placement, not automatically writer parallelism or TTL expiry. [Write transformer] [Partitioning]
This is a source review at commit abeebd9630f11bd08c28b7bd43c7bdfc62050654, not a RocksDB execution or crash test. Check the deployed version's contract before using a later implementation. BlobDB definition and implementation scope.
For an implementation comparison, report foreground and cleaning writes separately, value-size distribution, selected-victim liveness, free-space budget, scan mix, latency tails and recovery settings. Include a sustained update phase: a load-only run may never incur the cleaning bill being investigated.
WiscKey's collector persists copied records and the new index/tail state before reclaiming old space. That ordering matters independently of byte counts. Our evaluator contains no crash recovery or persistence protocol.[1, section 3.3.2]
Corpus: key-value separation, value log, database write amplification.
FASTER: the checkpoint changes the next write
A hash index over key-value records is a different layout from WiscKey's sorted key index. FASTER's hybrid log permits in-place updates in its mutable memory region and copies older records forward. Our fixed tree-write factor does not describe that design. [5, sections 2.1 and 6]
Recovery policy also affects record movement. A fold-over checkpoint advances the read-only boundary to the tail and flushes the main log; later updates append new versions. A snapshot checkpoint writes the in-memory state separately. Completion in memory is distinct from durable commit. [6]
In concurrent prefix recovery, the engine determines a commit position for each session. These positions need not correspond to one global issue-time cutoff. The client requests a commit, not an arbitrary vector of batch boundaries that the engine must satisfy without blocking. [8, section 2]
The documented API's commit point can include exceptions for pending operations. Retain that information when deciding which inputs need replay; do not infer durable completion from the largest sequence number alone. [6, Concurrent Prefix Recovery]
Reclaiming bytes requires choosing what survives
Compaction copies live records toward the tail and stops at the safe read-only boundary. Truncation instead expires an address range. A sequential log scan can include old versions and tombstones: counting scan records does not count current keys. [7, Log Scan and Log Compaction]
The 2018 evaluation excludes checkpointing, recovery and expiration-based garbage-collection costs. Its throughput is not a sustained, durability-equivalent cleaning result. [5, section 7.1]
Engineering implication: compare layouts with the same recovery objective, then measure appends, survivor copies, checkpoint writes and reclaimed bytes separately. Report checkpoint cadence and mutable-region size alongside the workload. This source synthesis adds no engine measurement and leaves the earlier arithmetic examples unchanged.
KVell: no compaction, but still page traffic
KVell puts its sorted key-location indexes in memory and stores records in unsorted slab files. Same-size single-page updates overwrite their slots. This removes an LSM merge pipeline, not the read-modify-write cost of an uncached page. [19, sections 5.2-5.5] [20, update callbacks]
The useful accounting unit is a page transfer, not an application call. Let w be the update fraction, h_r the hit probability among reads, and h_w the hit probability among updates. Under this deliberately restricted model, each update writes one page and each miss reads one page:
page transfers/request = (1-w)(1-h_r) + w(2-h_w).
| Assumed request mix and cache hits | Page reads / request | Page writes / request | Total / request |
|---|---|---|---|
| 50% updates; one-third hits for both | 0.667 | 0.500 | 1.167 |
| 80% updates; read hits 100%, update hits 0% | 0.800 | 0.800 | 1.600 |
| 80% updates; read hits 0%, update hits 100% | 0.200 | 0.800 | 1.000 |
| 50% updates; all requests hit | 0.000 | 0.500 | 0.500 |
A cache holding one third of the data does not by itself imply one-third hits. That approximation needs a matching access distribution. These examples assume resident indexes and one-page operations without cross-request coalescing. Inserts, deletes, resizing, scans, metadata I/O and NAND writes are outside the calculation. The formula is an expected transfer count, not a latency or throughput prediction. Calculation / executable tests.
Persistence has a separate contract. Section 5.6 assumes power-fail-atomic 4 KiB pages. Section 6.6 tests recovery by killing the database process, not by cutting power. The pinned code opens slab files with O_DIRECT; bypassing the page cache alone does not make completion power-loss durable. Verify the device, filesystem and acknowledgement path together. [19] [21] [24, O_DIRECT and O_SYNC] Direct-I/O contract.
Two boundaries matter for comparisons: ordinary KVell scans return current values per key, not one snapshot, and its RAM index is separate from its page cache. The paper describes multi-block records, while the pinned prototype documents items above 4 KiB as unsupported. KVell+ is a separate extension; do not transfer its snapshot guarantees to this implementation. [19, sections 5.3, 5.5 and 6.5] [22] [23]
KVell+ moves snapshot work to the reader
Online Commutative Processing (OLCP) changes how a query consumes a snapshot. An order-independent scan processes each snapshot-visible record once, accepting an old value early when its storage is reclaimed. Point ranges permit repeated reads but keep versions; conventional snapshot queries running alongside OLCP can also delay reclamation. Commit recovery still requires old values until the replacement transaction is complete. [OLCP, sections 2.2-2.4]
A removed value can still need an index marker
The implementation delays propagation until a reusable slot is needed, sharing the block read with the incoming update. Different-sized versions can occupy different slabs and be overwritten out of version order. Removing the middle version's index entry outright could then make an older version look visible to a later scan. Retaining a deleted marker preserves the visibility boundary after the payload has gone. [OLCP, section 4.4 and Figure 3]
The pinned code implements this distinction by clearing the slab pointer while retaining necessary version information. Lookup first selects the newest eligible version and then checks whether it still has a payload; it does not simply select the newest surviving payload. The code also preserves a timestamp boundary when removing a trailing marker. [Old-version lookup and reclamation]
The paper interface exceeds the public prototype
The paper describes multiple scan ranges and point ranges. At revision bd570b32, the author README instead documents one scan range and no point ranges. It exposes asynchronous kv_long_scan, not the paper's blocking olcp_query. The caller must drain the injector queue to receive callbacks. A transaction write callback is not a persistence acknowledgement: the example subsequently invokes kv_commit. [Prototype API and limitations]
The same README warns that crash recovery may not work, races may remain and mixing with nontransactional operations may be unsafe. It also limits items to 4 KiB. These are restrictions of this pinned artifact, not a proof that the OLCP model is incorrect. A reproduction should record the commit, transaction mode and query API before comparing results. [Prototype scope]
Comparison rule: measure retained payloads, index metadata, propagation queues and query working memory separately. Reducing stored versions does not establish zero total memory cost. This section is a source review, not a KVell+ benchmark.
Compact flash indexes: count slots, then verify keys
FAWN-DS predates WiscKey: its DRAM hash index points into an append-only flash log. A 15-bit key fragment screens candidates; the complete key in the log must still match before lookup returns a value. A fragment collision can therefore add a read without returning the wrong record. This is exact-match indexing, not WiscKey's ordered index. Here the complete key means FAWN's 160-bit lookup key: this comparison cannot distinguish original objects already mapped to the same key by an upstream application. This is a limit of the key interface, not a measured collision in the paper. [9, section 3.3 and Figure 3]
SILT's LogStore likewise uses six-byte slots. Its partial-key cuckoo tag also gives the alternate bucket, so relocation does not require a flash key read. The reported roughly 0.7 bytes per record concerns the combined stores, not each LogStore slot. These are historical design and evaluation scopes, not current performance rankings. [10, sections 3.1 and 6.1]
A slot width is not a per-record memory budget
For an array with M allocated slots, slot width b and N resident entries, the array uses bM bytes. Its cost per resident entry is bM/N = b/occupancy. Count vacant slots in the numerator, not as stored records in the denominator.
| Resident entries | Occupancy | Allocated bytes | Bytes / resident entry |
|---|---|---|---|
| 0 | 0% | 6000 | Undefined |
| 500 | 50% | 6000 | 12.00 |
| 930 | 93% | 6000 | 6.45 |
The empty array still consumes memory, but its per-record ratio is undefined. This accounting excludes allocator overhead, payload buffers and other indexes; it neither predicts collision rates nor proves a requested occupancy is reachable. Compare the same memory components and workload phase before ranking stores. Executable arithmetic and regression tests.
uDepot: index space and the recovery contract
uDepot reconstructs fingerprints from slot positions and tags, so resizing need not fetch keys from storage. Old and new structures coexist during migration. Its record trailer matches segment metadata; it is not a checksum of the value payload. [uDepot, sections 4.2-4.4]
Its Memcache mode can reclaim a segment by evicting its cached records, including unexpired ones, without relocating survivors. This changes retention, not just cleaning efficiency: it is not the persistent store's promise to preserve live values. [uDepot, section 4.8]
Apply the array accounting above: 1,000 eight-byte slots with 750 residents consume 8,000 bytes, or 10.67 bytes per resident. This invented occupancy excludes directory, locks, buffers and resize overlap. It is not measured uDepot RAM consumption.
Recovery depends on the storage path. The pinned implementation documents protected device buffers as a recovery condition and excludes a crash-integrity guarantee for filesystem-backed use. [uDepot implementation, Notes] O_DIRECT alone supplies no O_SYNC durability guarantee. [24]
Successful retrieval can still be partial. The public get interface returns both bytes copied and stored value length. Return code zero alone does not establish full-value retrieval; require val_size_read == val_size when the application needs the complete value. [uDepot, KV::get]
This is source interpretation and array arithmetic, not a reproduction of the paper's performance or crash-recovery results.
NVMKV: move the mapping boundary into the FTL
NVMKV takes a different route from a separated-value LSM: hash the key into a sparse logical address space and let the FTL map populated addresses to flash. Unwritten gaps reserve virtual addresses, not physical flash capacity. Eliminating the application's location index does not eliminate the FTL map, its persistence or its garbage collection. [NVMKV 2014, sections 2-3]
The lower-layer contract matters. Sparse addressing, atomic writes and persistent trimming are required primitives, not guarantees of an arbitrary block device. The 2015 paper guarantees atomicity and serializability for individual operations submitted in a batch, not the batch as one transaction. Pool deletion first persists invalidation, then reclaims data asynchronously. [NVMKV 2015, sections 4.2, 6.3 and 7.2]
Engineering implication: compare application writes and device-internal NAND writes separately. Removing a software compaction stage does not establish zero end-to-end write amplification or instantaneous space reclamation. This is a source-based architectural contrast, not a new performance measurement. The earlier cleaning equations describe their stated layouts, not an NVMKV implementation.
When fewer RAM pointers mean more flash probes
FlashStore uses compact RAM signatures to locate flash records, then compares full keys. Its disk tier makes a flash miss different from an absent key. Most reported experiments fit on flash with the disk-presence filter disabled; destaging is evaluated separately. [FlashStore, sections 4.2-4.4 and 5.2]
SkimpyStash moves chain pointers onto flash. Its enhanced directory combines a four-byte head pointer, one-byte count and approximately one Bloom-filter byte per key. At mean occupancy k, this gives 1 + 5/k directory bytes per key. Compaction improves chain locality, but false positives can still trigger extra searches. [SkimpyStash, sections 4.5-4.6]
| Mean records per bucket | Head pointer only (B/key) | Pointer, count and filter (B/key) |
|---|---|---|
| 2 | 2.00 | 3.50 |
| 5 | 0.80 | 2.00 |
| 10 | 0.40 | 1.50 |
| 20 | 0.20 | 1.25 |
Interpretation: reducing one RAM component can move work elsewhere. Neither a bucket count nor a filter match tells us the number of device reads. Compare successful and unsuccessful requests, chain placement, cache state and maintenance traffic before predicting speed. The earlier per-record slot calculation and this per-bucket calculation have different denominators; neither counts buffers, allocator overhead or flash payload. The calculation and tests retain those boundaries.
BufferHash: what is the lookup denominator?
BufferHash batches insertions in RAM and flushes hash-table incarnations to flash. Per-incarnation Bloom filters stay in memory to select candidate tables. [author project]
The paper's lookup experiment mixes absent keys, RAM hits and flash hits. Its Table 2 explicitly varies lookup success rate. A low average across all requests is not the cost conditional on finding a key on flash. [sections 7.1-7.2, Table 2]
An explicit conditional model
This is Hesela's accounting example, not a reproduction. Order k incarnations newest first. Let a be the absent-request share, b the RAM-hit share and h_j the share whose newest live match is in incarnation j. These are unconditional shares summing to one. Let p_i be the false-positive probability for each consulted nonmember filter, assumed the same across these outcome classes.
Assume one logical page probe per positive filter, one probe for a true flash match, no cache reuse or concurrent changes, and stopping at that match. Then E[R | absent] = sum p_i and E[R | hit in j] = 1 + sum_(i < j) p_i. RAM hits use zero probes. The overall expectation is E[R] = a * sum p_i + sum_j h_j * (1 + sum_(i < j) p_i). Linearity of expectation needs no independence between filters; the stated conditional probabilities still have to apply.
| Request mix | Absent | RAM hit | Flash hit | Mean probes/request |
|---|---|---|---|---|
| Mostly absent | 70% | 10% | 20% | 0.288 |
| Mostly flash hits | 10% | 10% | 80% | 0.882 |
Both rows have 0.100 expected probes per absent request and 1.090 per flash hit. Only the request mix changes. The different overall averages do not establish a faster device or a better index. Probe counts exclude CPU filter checks, writes, maintenance, NAND operations and elapsed time. Download the CC0 model and enumeration tests.
Eviction is a correctness boundary
Section 5.1.2 and footnote 2 allow live-item eviction under capacity pressure or a false positive in update-based eviction. This differs from an extra read caused by a lookup false positive. [section 5.1.2, footnote 2] A reconstructible accelerator and an authoritative dictionary need different retention contracts.
Bourbon: will the file outlive its model cost?
Bourbon adds learned lookup models to a separated-value LSM. Its default learning unit is an immutable file, not an entire changing level. The final value-log read remains. Faster indexing alone does not remove the earlier cleaning bill. [Bourbon, sections 4.2-4.5]
The original artifact's cost-benefit function distinguishes positive from negative internal lookups, uses same-level statistics and gates sparse samples. Its data-derived score is expected benefit per byte, not total saved time. The caller admits scores strictly above its cost-per-byte threshold; bootstrap and policy branches can override the data-derived score. [Bourbon artifact, CalculateCB] [Bourbon artifact, PrepareLearn] Historical lookup counts do not guarantee enough future use for each individual file.
A predicted position does not establish membership. Bourbon checks the candidate block filter and searches for the exact key; files without an available model use the baseline lookup path. The 2020 implementation requires fixed-size keys and does not support general string keys or key compression. It does not adaptively switch between file and level models. [Bourbon, sections 4.2 and 4.5]
Internal lookups count candidate-file probes, not application requests: one request can search several files. A negative probe means the key is absent from that file, even if another file contains it. If the predicted position range crosses data-block boundaries, Bourbon consults the index block to select the block; learned lookup does not eliminate every conventional index access. [Bourbon, section 4.5 and Figure 10]
Count useful lookups after construction
For an intentionally simpler accounting example, let construction cost C microseconds and each subsequent lookup save s microseconds. With N useful lookups before replacement, net saved work is Ns - C. Break-even is N = C/s when s > 0. Age alone supplies neither the lookup count nor the saving.
| Useful lookups | Gross saved (us) | Build cost (us) | Net saved (us) |
|---|---|---|---|
| 0 | 0 | 4000 | -4000 |
| 2000 | 2000 | 4000 | -2000 |
| 4000 | 4000 | 4000 | 0 |
| 8000 | 8000 | 4000 | 4000 |
Lookups before model readiness earn no saving here. The example excludes queueing, parallel overlap, compaction and value reads; it accounts for work, not elapsed latency. It is not Bourbon's online estimator. Executable arithmetic and tests.
Reproduction requires the correct artifact. The author links a Bitbucket repository; the similarly named GitHub repository describes its own level-based file-selection modification. Do not silently substitute that later variant when interpreting the 2020 results. [Author] [Later variant]
Primary sources and limits
- Lanyue Lu, Thanumalayan Sankaranarayana Pillai, Andrea C. Arpaci-Dusseau and Remzi H. Arpaci-Dusseau. WiscKey: Separating Keys from Values in SSD-conscious Storage. USENIX FAST 2016, pp. 133-148, sections 3.2-3.3 and 4.
- Helen H. W. Chan, Yongkun Li, Patrick P. C. Lee and Yinlong Xu. HashKV: Enabling Efficient Updates in KV Storage via Hashing. USENIX ATC 2018, pp. 1007-1019, sections 3-4.
- RocksDB project. BlobDB: integrated implementation, garbage collection and configuration. Documentation reviewed 12 October 2026; page displays revision date 22 September 2022.
- Mendel Rosenblum and John K. Ousterhout. The Design and Implementation of a Log-Structured File System. ACM TOCS 10(1), February 1992, pp. 26-52, sections 3.4-3.5.
- Chandramouli et al. FASTER: A Concurrent Key-Value Store with In-Place Updates. SIGMOD 2018, sections 2.1, 6 and 7.1.
- FASTER documentation: FasterKV Checkpointing and Recovery, snapshot, fold-over and commit-point semantics.
- FASTER documentation: FasterKV Basics, Log Scan and Log Compaction.
- Prasaad, Chandramouli and Kossmann. Concurrent Prefix Recovery: Performing CPR on a Database. SIGMOD 2019, section 2.
- Andersen, Franklin, Kaminsky, Phanishayee, Tan and Vasudevan. FAWN: A Fast Array of Wimpy Nodes. SOSP 2009, section 3.3 and Figure 3.
- Lim, Fan, Andersen and Kaminsky. SILT: A Memory-Efficient, High-Performance Key-Value Store. SOSP 2011, sections 3.1, 5 and 6.1.
- Papagiannis, Saloustros, Gonzalez-Ferez and Bilas. Tucana. USENIX ATC 2016, pp. 537-550, sections 3-4.
- Papagiannis. Memory-Mapped I/O for Fast Storage. PhD dissertation, December 2020, chapter 3, sections 3.2.1-3.2.3.
- Kreon author repository, pinned README: multilevel B+-tree indexing and benchmark build configurations.
- Dai et al. From WiscKey to Bourbon: A Learned Index for Log-Structured Merge Trees. OSDI 2020, 155-171, sections 4-5.
- Original Bourbon artifact, revision dfbf4f39: mod/CBMode_Learn.cpp, CalculateCB.
- edydfang/Bourbon README at a51084b3: attribution and stated level-based file-selection modification.
- Original Bourbon artifact, revision dfbf4f39: util/env_posix.cc, PrepareLearn admission threshold.
- Lepers et al. KVell. SOSP 2019, pp. 447-461, sections 5.2-5.6, 6.5-6.6. DOI: 10.1145/3341301.3359628.
- KVell author code, revision a6cbc0cb: slab.c, single-page update callbacks.
- KVell author code, revision a6cbc0cb: slab.c, file open flags.
- KVell author artifact, revision a6cbc0cb: OVERVIEW, prototype scope and item-size limits.
- KVell author repository: distinct SOSP KVell and OSDI KVell+ artifacts.
- Linux man-pages: open(2), O_DIRECT does not provide the synchronized I/O guarantees of O_SYNC.
- Athanassoulis et al. Designing Access Methods: The RUM Conjecture. EDBT 2016, pp. 461-466, sections 1-4. DOI: 10.5441/002/edbt.2016.42.
- Debnath, Sengupta and Li. FlashStore: High Throughput Persistent Key-Value Store. PVLDB 3(2), 2010, sections 4.2-4.5 and 5.2.
- Debnath, Sengupta and Li. SkimpyStash: RAM Space Skimpy Key-Value Store on Flash-based Storage. SIGMOD 2011, sections 4.3-4.6 and 5.1-5.2.
- Kourtis, Ioannou and Koltsidas. Reaping the performance of fast NVM storage with uDepot. FAST 2019, pp. 1-15, sections 4.2-4.4 and 4.8.
- uDepot authors' archived implementation, revision 5b9d9f4c: README, crash-recovery conditions.
- uDepot authors' implementation, revision 5b9d9f4c: KV::get output sizes and successful partial retrieval.
- Marmol et al. NVMKV: A Scalable and Lightweight Flash Aware Key-Value Store. HotStorage 2014, sections 2-3.
- Marmol, Sundararaman, Talagala and Rangaswami. NVMKV: A Scalable, Lightweight, FTL-aware Key-Value Store. USENIX ATC 2015, pp. 207-219, sections 4.2, 6.3 and 7.2.
- Sheehy and Smith. Bitcask: A Log-Structured Hash Table for Fast Key/Value Data. 27 April 2010, pp. 2-6.
- Bitcask configuration at d84c8d9: default strategy and caller-owned periodic synchronization.
- Bitcask I/O dispatch at d84c8d9: default Erlang backend selection.
- Bitcask Erlang file backend at d84c8d9: unsupported o_sync option and explicit file synchronization.
- Baptiste Lepers, Oana Balmau, Karan Gupta and Willy Zwaenepoel. Kvell+: Snapshot Isolation without Snapshots. OSDI 2020, pp. 425-441, sections 2 and 4.4.
- KVell+ author artifact at bd570b32: asynchronous API, one scan range, absent point ranges and prototype limitations.
- KVell+ author implementation at bd570b32: old-version lookup, deleted payload markers and retained timestamp boundaries.
- Vajgel, Beaver and Sobel. Needle in a haystack: efficient storage of billions of photos. 30 April 2009.
- Beaver, Kumar, Li, Sobel and Vajgel. Finding a Needle in Haystack: Facebook's Photo Storage. USENIX OSDI 2010, sections 3.4.4-3.4.5 and 3.6.1, Table 2.
- Akella research group: Content-based Network Protocols and Architectures, BufferHash mechanism and NSDI 2010 publication.
- Anand, Muthukrishnan, Kappes, Akella and Nath. Cheap and Large CAMs for High Performance Data-Intensive Networked Systems. NSDI 2010, sections 5.1-5.2, 6.2 and 7; footnote 2.
- RocksDB v11.8.1: advanced_options.h, experimental direct-write v1 contract.
- RocksDB v11.8.1: BlobWriteBatchTransformer::PutCF, TimedPutCF and PutEntityCF.
- RocksDB v11.8.1: direct-write close, option, threshold and snapshot tests (reviewed, not executed).
- Xingbo Wang. Blob Direct Write With Partitioned Blob Files. RocksDB project, 20 June 2026.
Reviewed 2 December 2026. Original model and computed rows: CC0. Papers retain their own rights. No paper performance result was reproduced.