Access Official Technical PDF

Share Summary:LinkedInEmail

Write amplification is a persistent storage challenge for update-intensive applications: the storage device may write data many times over for each write issued by the database. In persistent key-value stores, this overhead can build up across the database, file system and flash translation layer (FTL). NoFTL-KV explores an alternative: integrating physical storage management into the key-value store so it can coordinate data placement and maintenance with its own workload.

The approach was implemented under RocksDB, an LSM-tree-based key-value store, and evaluated with the LinkBench workload. The results indicate that reducing layers of indirect storage management can affect both transaction performance and flash erase activity. They also illustrate the trade-off: bypassing familiar storage abstractions gives the database greater control over the device, but requires native storage management rather than relying on a conventional file-based stack.

Why write amplification builds in the storage stack

Key-value stores are often used for high-throughput, update-heavy workloads. RocksDB organizes data using a log-structured merge tree (LSM-tree): incoming changes are written to upper levels, and compaction periodically reorganizes data across levels. Compaction removes obsolete or deleted records and helps maintain the tree’s structure. This append-oriented design is a good fit for many write-intensive workloads, but the physical writes do not stop at the database layer.

In a conventional, or “cooked,” storage stack, database writes pass through a file system and block-device interface before reaching the SSD’s FTL. Each layer manages storage using its own abstractions and may perform additional work. For example, the file system may journal updates, while the FTL maps logical addresses to flash locations and performs garbage collection. When data must be relocated or blocks reclaimed, these layers can add physical I/O beyond the database’s original writes.

The result is write amplification: the physical volume written to flash exceeds the logical data written by the application or database. More physical writes can mean more garbage-collection work and block erases. The database also has limited visibility into where data is placed and how its access patterns align with the device’s parallel resources.

How NoFTL-KV brings flash management into the KV store

NoFTL-KV reduces reliance on backward-compatible storage layers by giving the key-value store direct control of physical storage management through a native storage interface. Instead of treating the device only as a conventional block-addressed volume, the design integrates responsibilities such as address mapping, data placement, free-space management and garbage collection with the KV store.

This visibility lets the storage manager use information about the workload and the LSM-tree when deciding how to organize data. NoFTL-KV introduces Regions as physical storage abstractions that can span multiple chips or dies. Regions can be configured for different access patterns or KV-store components, and their definitions can change as workload characteristics evolve. The intent is to manage parallelism and hot-cold data separation in coordination with the database, rather than leaving all placement decisions to hardware-oblivious layers.

The design also coordinates garbage collection with LSM-tree compaction. Since compaction already reorganizes data and discards obsolete records, integrating storage maintenance with that process can reduce redundant movement. The storage manager can plan work for Regions, while some tasks may be pushed down to the device. This is a change in where storage responsibilities sit—not simply a different setting applied to a conventional file system.

What the RocksDB and LinkBench evaluation found

The evaluation compared NoFTL-KV with a file-system-based RocksDB configuration using LinkBench, an OLTP-style workload that updates and queries a large graph. The test setup used an emulated flash device for NoFTL-KV data, while other files remained on a conventional file system. Results therefore describe this particular implementation and test environment, rather than establishing a universal outcome for every SSD or workload.

Across the reported tests, NoFTL-KV improved transactional throughput by 33%, while response times improved by up to 2.3 times. The paper also reports 87% fewer physical page writes and approximately 19 times fewer block erases than the baseline. During the LinkBench request phase, the traditional stack showed average write amplification of more than 19 times. Together, these measurements show how work performed across the file system and FTL can substantially increase physical I/O.

Performance effects varied by operation. Read operations such as retrieving nodes or link lists benefited from lower latency, including cases where data had to be fetched from persistent storage rather than the database buffer. Some inserts and updates showed similar operation latency in both configurations because they could complete after entering an in-memory buffer and write-ahead log; persistence followed later during compaction. This distinction matters when interpreting benchmark results: the time observed by an individual operation may not include all subsequent storage work.

Practical considerations for automation and data platforms

For teams operating update-heavy data services, the study points to several questions worth asking when assessing storage performance:

  • Where are physical writes added? Measure activity at the database, file-system and device layers to distinguish logical workload from physical flash traffic.
  • Do storage abstractions match the workload? Consider whether append-oriented database behavior is being disrupted by lower layers with separate placement and garbage-collection policies.
  • Can maintenance tasks be coordinated? Compaction, garbage collection and free-space management may create overlapping data movement when managed independently.
  • What control does the system require? Native management can improve coordination, but it also replaces some functions and compatibility provided by conventional storage interfaces.

NoFTL-KV’s results do not mean that every production system should bypass its file system or FTL. The work demonstrates a design direction and a measured outcome for a particular RocksDB implementation and LinkBench evaluation. Applying the approach elsewhere would require assessing device support, integration requirements and the workload’s read/write behavior.

Conclusion: coordinate database and flash management

Write amplification is not solely a database-level issue; it can accumulate across the full I/O path. NoFTL-KV addresses that problem by bringing physical flash management closer to the KV store, where data placement and maintenance can account for LSM-tree behavior. In the reported tests, that coordination reduced physical writes and erases while improving throughput and response times. For engineers and technical decision-makers, the practical lesson is to measure the entire storage path—and consider whether database and device management are working together or generating redundant I/O.

Access Official Technical PDF

About The Author