[Paper Review] Barrier-enabled IO stack for flash storage
This paper proposes a barrier-enabled I/O stack that eliminates the performance overhead of Transfer-and-Flush by leveraging cache barrier commands in Flash storage. By integrating Epoch-based IO scheduling, Order-Preserving Dispatch, and Dual-Mode Journaling, it ensures storage order with up to 270% higher SQLite performance on servers and 73x faster SQLite performance on storage systems compared to EXT4.
This work is dedicated to eliminating the overhead required for guaranteeing the storage order in the modern IO stack. The existing block device adopts a prohibitively expensive approach in ensuring the storage order among write requests: interleaving the write requests with Transfer-and-Flush. Exploiting the cache barrier command for Flash storage, we overhaul the IO scheduler, the dispatch module, and the filesystem so that these layers are orchestrated to preserve the ordering condition imposed by the application with which the associated data blocks are made durable. The key ingredients of Barrier-Enabled IO stack are Epoch-based IO scheduling, Order-Preserving Dispatch, and Dual-Mode Journaling. Barrier-enabled IO stack can control the storage order without Transfer-and-Flush overhead. We implement the barrier-enabled IO stack in server as well as in mobile platforms. SQLite performance increases by 270% and 75%, in server and in smartphone, respectively. In a server storage, BarrierFS brings as much as by 43x and by 73x performance gain in MySQL and SQLite, respectively, against EXT4 via relaxing the durability of a transaction.
Motivation & Objective
- To eliminate the performance penalty of Transfer-and-Flush in modern I/O stacks for Flash storage.
- To preserve application-specified write ordering without sacrificing durability guarantees.
- To redesign the IO scheduler, dispatch module, and filesystem to work cohesively with Flash cache barriers.
- To achieve high performance in both server and mobile platforms under durable I/O constraints.
- To demonstrate measurable performance gains in real-world workloads like SQLite and MySQL.
Proposed method
- Introducing Epoch-based IO scheduling to group and order write requests based on application-defined epochs.
- Designing Order-Preserving Dispatch to ensure that I/O requests are sent to the storage device in the correct sequence.
- Implementing Dual-Mode Journaling that uses cache barriers to enforce durability while minimizing flush overhead.
- Leveraging the Flash storage's native cache barrier command to replace costly Transfer-and-Flush operations.
- Orchestrating the IO scheduler, dispatch module, and filesystem to coordinate around the barrier semantics.
- Validating the design in both server and mobile platforms using real workloads such as SQLite and MySQL.
Experimental results
Research questions
- RQ1Can the performance overhead of Transfer-and-Flush be eliminated in Flash storage I/O stacks?
- RQ2How can application-specified write ordering be preserved without relying on expensive flush operations?
- RQ3What architectural changes are required to integrate cache barriers into the full I/O stack?
- RQ4To what extent can performance improve in database workloads like SQLite and MySQL?
- RQ5Can the proposed stack maintain durability guarantees while achieving high throughput?
Key findings
- SQLite performance improved by 270% on server platforms due to elimination of Transfer-and-Flush overhead.
- SQLite performance increased by 75% on smartphone platforms using the barrier-enabled I/O stack.
- BarrierFS achieved up to 43x performance gain over EXT4 in MySQL workloads by relaxing transaction durability requirements.
- BarrierFS delivered up to 73x performance improvement in SQLite workloads compared to EXT4 on server storage.
- The barrier-enabled I/O stack successfully maintains storage order with minimal performance cost by replacing Transfer-and-Flush with cache barriers.
- The design is effective across diverse platforms, including both high-end servers and mobile devices.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.