Skip to main content
QUICK REVIEW

[论文解读] Barrier-enabled IO stack for flash storage

Youjip Won, Jaemin Jung|arXiv (Cornell University)|Feb 12, 2018
Advanced Data Storage TechnologiesComputer Science参考文献 49被引用 20
一句话总结

本文提出了一种支持屏障的 I/O 栈,通过利用闪存存储中的缓存屏障命令,消除了传输-刷新操作的性能开销。通过整合基于纪元的 I/O 调度、顺序保持分发和双模式日志机制,该方案在服务器上将 SQLite 性能提升高达 270%,在存储系统上将 SQLite 性能提升 73 倍,均优于 EXT4。

ABSTRACT

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.

研究动机与目标

  • 消除现代闪存存储 I/O 栈中传输-刷新操作带来的性能开销。
  • 在不牺牲持久性保证的前提下,保留应用程序指定的写入顺序。
  • 重新设计 I/O 调度器、分发模块和文件系统,使其与闪存缓存屏障协同工作。
  • 在满足持久性 I/O 约束的前提下,实现在服务器和移动平台上的高性能。
  • 在真实工作负载(如 SQLite 和 MySQL)中展示可测量的性能提升。

提出的方法

  • 引入基于纪元的 I/O 调度机制,根据应用程序定义的纪元对写入请求进行分组和排序。
  • 设计顺序保持分发机制,确保 I/O 请求按正确顺序发送至存储设备。
  • 实现双模式日志机制,利用缓存屏障强制保证持久性,同时最小化刷新开销。
  • 利用闪存存储原生的缓存屏障命令,替代高成本的传输-刷新操作。
  • 协调 I/O 调度器、分发模块和文件系统,围绕屏障语义进行协同。
  • 在服务器和移动平台中通过 SQLite 和 MySQL 等真实工作负载验证设计方案。

实验结果

研究问题

  • RQ1能否在闪存存储 I/O 栈中彻底消除传输-刷新操作的性能开销?
  • RQ2如何在不依赖昂贵刷新操作的前提下,保留应用程序指定的写入顺序?
  • RQ3为将缓存屏障集成到完整的 I/O 栈中,需要进行哪些架构修改?
  • RQ4在 SQLite 和 MySQL 等数据库工作负载中,性能最多可提升多少?
  • RQ5所提出的 I/O 栈能否在实现高吞吐量的同时维持持久性保证?

主要发现

  • 由于消除了传输-刷新开销,SQLite 在服务器平台上的性能提升了 270%。
  • 在智能手机平台中,使用支持屏障的 I/O 栈后,SQLite 性能提升了 75%。
  • 在 MySQL 工作负载中,BarrierFS 通过放宽事务持久性要求,性能最高达到 EXT4 的 43 倍。
  • 在服务器存储上,BarrierFS 相较于 EXT4 在 SQLite 工作负载中实现了最高 73 倍的性能提升。
  • 通过用缓存屏障替代传输-刷新操作,支持屏障的 I/O 栈以极低的性能开销成功维持了存储顺序。
  • 该设计在多种平台(包括高端服务器和移动设备)上均表现出色。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。