arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.00425cs.DB
收藏

如何在数据库中使用持久内存

How to use Persistent Memory in your Database

Dimitrios Koutsoukos, Raghav Bhartia, Ana Klimovic, Gustavo Alonso

摘要:

持久性或非易失性存储器(PMEM或NVM)最近已经在具有不同目的和目标的若干配置下商业上可用。尽管关注的主题,我们不知道一个全面的实证分析现有的关系数据库引擎在不同的PMEM配置。这样的研究对于理解各种硬件配置的性能影响以及不同的数据库引擎如何从中受益非常重要。为此,我们分析了常见工作负载(TPC-C和TPC-H)下的三种不同引擎(PostgreSQL、MySQL和SQLServer),以及英特尔Optane NVM设备支持的所有可能的PMEM配置(PMEM作为AppDirect模式下的持久性内存,PMEM作为Memory模式下的易失性内存)。我们的结果描绘了一幅复杂的画面,由于涉及的因素很多,并不总是直观的。根据我们的研究结果,我们提供了关于不同引擎如何使用PMEM以及哪些配置和查询性能最佳的见解。我们的研究结果表明,使用PMEM作为持久存储通常会加快查询执行,但有一些警告,因为I/O路径没有完全优化。此外,在存储器模式下使用PMEM并不提供任何性能优势,尽管易失性存储器容量更大。通过对引擎和参数的广泛介绍,我们为在数据库中利用PMEM和调整关系引擎以利用这项新技术提供了一个重要的起点。

英文摘要:

Persistent or Non Volatile Memory (PMEM or NVM) has recently become commercially available under several configurations with different purposes and goals. Despite the attention to the topic, we are not aware of a comprehensive empirical analysis of existing relational database engines under different PMEM configurations. Such a study is important to understand the performance implications of the various hardware configurations and how different DB engines can benefit from them. To this end, we analyze three different engines (PostgreSQL, MySQL, and SQLServer) under common workloads (TPC-C and TPC-H) with all possible PMEM configurations supported by Intel's Optane NVM devices (PMEM as persistent memory in AppDirect mode and PMEM as volatile memory in Memory mode). Our results paint a complex picture and are not always intuitive due to the many factors involved. Based on our findings, we provide insights on how the different engines behave with PMEM and which configurations and queries perform best. Our results show that using PMEM as persistent storage usually speeds up query execution, but with some caveats as the I/O path is not fully optimized. Additionally, using PMEM in Memory mode does not offer any performance advantage despite the larger volatile memory capacity. Through the extensive coverage of engines and parameters, we provide an important starting point for exploiting PMEM in databases and tuning relational engines to take advantage of this new technology.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑