Concepedia

Publication | Closed Access

SHARE Interface in Flash Storage for Relational and NoSQL Databases

30

Citations

21

References

2016

Year

TLDR

Database consistency requires write atomicity, yet most systems treat writes as non‑atomic and rely on journaling or copy‑on‑write, which causes write amplification that degrades performance and accelerates flash wear. The authors introduce SHARE, a flash‑storage interface designed to provide atomic writes without amplification. SHARE permits explicit address remapping inside flash, enabling host‑side engines such as MySQL/InnoDB and Couchbase to perform atomic updates directly; the authors implemented SHARE on an OpenSSD board and adapted these engines to use the interface. Experiments show that SHARE‑enabled MySQL/InnoDB and Couchbase achieve markedly higher performance, with Couchbase compaction completing without copying any data pages.

Abstract

Database consistency and recoverability require guaranteeing write atomicity for one or more pages. However, contemporary database systems consider write operations non-atomic. Thus, many database storage engines have traditionally relied on either journaling or copy-on-write approaches for atomic propagation of updated pages to the storage. This reliance achieves write atomicity at the cost of various write amplifications such as redundant writes, tree-wandering, and compaction. This write amplification results in reduced performance and, for flash storage, accelerates device wear-out. In this paper, we propose a flash storage interface, SHARE. Being able to explicitly remap the address mapping inside flash storage using SHARE interface enables host-side database storage engines to achieve write atomicity without causing write amplification. We have implemented SHARE on a real SSD board, OpenSSD, and modified MySQL/InnoDB and Couchbase NoSQL storage engines to make them compatible with the extended SHARE interface. Our experimental results show that this SHARE-based MySQL/InnoDB and Couchbase configurations can significantly boost database performance. In particular, the inevitable and costly Couchbase compaction process can complete without copying any data pages.

References

YearCitations

Page 1