...
首页> 外文期刊>Computer architecture news >NVWAL: Exploiting NVRAM in Write-Ahead Logging
【24h】

NVWAL: Exploiting NVRAM in Write-Ahead Logging

机译:NVWAL:在预写日志记录中利用NVRAM

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Emerging byte-addressable non-volatile memory is considered an alternative storage device for database logs that require persistency and high performance. In this work, we develop NVWAL (NVRAM Write-Ahead Logging) for SQLite. The proposed NVWAL is designed to exploit byte-addressable NVRAM to maintain the write-ahead log and to guarantee the failure atomicity and the durability of a database transaction. The contribution of NVWAL consists of three elements: (ⅰ) byte-granularity differential logging that effectively eliminates the excessive I/O overhead of filesystem-based logging or joumaling, (ⅱ) transaction-aware lazy synchronization that reduces cache synchronization overhead by two-thirds, and (ⅲ) user-level heap management of the NVRAM persistent WAL structure, which reduces the overhead of managing persistent objects. We implemented NVWAL in SQLite and measured the performance on a Nexus 5 smartphone and an NVRAM emulation board-Tuna. Our performance study shows the following: (ⅰ) the overhead of enforcing strict ordering of NVRAM writes can be reduced via NVRAM-aware transaction management. (ⅱ) From the application performance point of view, the overhead of guaranteeing failure atomicity is negligible; the cache line flush overhead accounts for only 0.8~4.6% of transaction execution time. Therefore, application performance is much less sensitive to the NVRAM performance than we expected. Decreasing the NVRAM latency by one-fifth (from 1942 nsec to 437 nsec), SQLite achieves a mere 4% performance gain (from 2517 ins/sec to 2621 ins/sec). (ⅲ) Overall, when the write latency of NVRAM is 2 usec, NVWAL increases SQLite performance by at least 10x compared to that of WAL on flash memory (from 541 ins/sec to 5812 ins/sec).
机译:新兴的可字节寻址的非易失性存储器被视为需要持久性和高性能的数据库日志的替代存储设备。在这项工作中,我们为SQLite开发了NVWAL(NVRAM预写日志记录)。提出的NVWAL旨在利用字节可寻址NVRAM来维护预写日志,并保证故障原子性和数据库事务的持久性。 NVWAL的贡献包括三个要素:(ⅰ)字节粒度差异日志记录,有效消除了基于文件系统的日志记录或Joumaling的过多I / O开销;(ⅱ)事务感知的惰性同步,将缓存同步开销减少了两倍-第三,以及(ⅲ)NVRAM持久WAL结构的用户级堆管理,从而减少了管理持久对象的开销。我们在SQLite中实现了NVWAL,并测量了Nexus 5智能手机和NVRAM仿真板-Tuna的性能。我们的性能研究显示以下内容:(ⅰ)通过支持NVRAM的事务管理,可以减少执行严格的NVRAM写入顺序的开销。 (ⅱ)从应用程序性能的角度来看,保证故障原子性的开销可以忽略不计;缓存行刷新开销仅占事务执行时间的0.8〜4.6%。因此,应用程序性能对NVRAM性能的敏感性比我们预期的要低得多。通过将NVRAM延迟减少五分之一(从1942纳秒降低到437纳秒),SQLite的性能提升仅为4%(从2517英寸/秒到2621英寸/秒)。 (ⅲ)总体而言,当NVRAM的写入延迟为2 usc时,与闪存上的WAL相比,NVWAL将SQLite性能提高至少10倍(从541 ins / sec到5812 ins / sec)。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号