A Semantic-Integrated LSM-Tree-Based Key–Value Storage Engine for Blockchain Systems
- 29 December 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems
- Vol. 43 (6) , 1794-1807
Abstract
Blockchain systems play an important role in distributed ledgers, database systems, etc. As more and more blocks are mined, the storage burden of blockchain system is significantly increased. The current blockchain system uniformly transforms all its data into key–value (KV) items and stores them to the underlying log-structure merged tree (LSM-tree) storage engine ignoring the software semantics. Consequently, it not only aggravates the write amplification effect of the storage engine but also increases the redundancy of data query steps, resulting in the performance bottleneck of blockchain system. In this article, we propose a semantic-integrated LSM-tree-based KV storage engine for blockchain systems, called Block-LSM, which significantly improves the data synchronization and data query efficiency of blockchain system. Specifically, we first design a shared prefix scheme to transform blockchain data into ordered KV pairs to alleviate the key range overlaps of different levels in the underlying LSM-tree-based storage engine. Moreover, we propose to maintain several semantic-orientated memory buffers to isolate different kinds of blockchain data and implement memory buffer space management strategy to further improve memory efficiency. To save space overhead, Block-LSM further aggregates multiple blocks into a group and assigns the same prefix to all KV items from the same block group. We also reduce step redundancy in transaction queries by modifying the body data storage format. Finally, we implement Block-LSM in a real blockchain environment and conduct a series of comparative experiments with the typical blockchain system Ethereum. The evaluation results show that Block-LSM significantly reduces up to $7.56\times $ storage write amplification and increases throughput by $8.64\times $ compared with the original Ethereum design. In terms of data lookups (i.e., transaction and account lookup), Block-LSM improves the throughput by 50% compared to the original Ethereum design.
Keywords
Funding Information
- Key Research and Development Program of Shandong Province of China (2023CXPT002)
- National Natural Science Foundation of China (62272271, 62122056, U23B2040)
- Shenzhen Science and Technology Program (RCJC20221008092725019)
- NSF (2208317, 2343863)
This publication has 43 references indexed in Scilit:
- Blockchain-Based Secure Healthcare Application for Diabetic-Cardio Disease Prediction in Fog ComputingIEEE Access, 2021
- Blockchain-Based Software Process Improvement (BBSPI): An Approach for SMEs to Perform Process ImprovementIEEE Access, 2021
- BZIP: A compact data memory system for UTXO-based blockchainsJournal of Systems Architecture, 2020
- A semi-autonomous distributed blockchain-based framework for UAVs systemJournal of Systems Architecture, 2020
- Design and Optimization for Storage Mechanism of the Public Blockchain Based on Redundant Residual Number SystemIEEE Access, 2019
- Proof of Delivery of Digital Assets Using Blockchain and Smart ContractsIEEE Access, 2018
- A Low Storage Room Requirement Framework for Distributed Ledger in BlockchainIEEE Access, 2018
- An Overview of Blockchain Technology: Architecture, Consensus, and Future Trends2017
- EtherQL: A Query Layer for Blockchain System2017
- Internet of Things, Blockchain and Shared Economy ApplicationsProcedia Computer Science, 2016