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

使基于数组的翻译在现代高性能缓冲管理中实用

Making Array-Based Translation Practical for Modern, High-Performance Buffer Management

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Carnegie Mellon University(卡内基梅隆大学)

Xinjing Zhou, Jinming Hu, Andrew Pavlo, Michael Stonebraker

AI总结:

本文提出\calico,一种基于数组翻译的数据库管理系统缓冲池,通过多级翻译、洞 punching 和组预取技术,提升缓冲池在扫描、OLTP和向量搜索中的性能。

摘要:

现代缓冲池必须支持比传统OLTP更广泛的工作负载混合。除了B树查找外,数据库系统越来越多地服务于扫描密集型分析和向量搜索索引,这些工作负载需要一种翻译机制,将逻辑页面ID映射到驻留帧,同时在这些多样访问模式下快速,可在用户空间部署,兼容大页,易于集成,并仍受数据库管理系统控制以进行驱逐和I/O。现有设计只满足这些目标的部分。本文提出了\calico,一种基于数组翻译的DBMS控制缓冲池,这是一种几十年来被忽视但如今可行的现代硬件。\calico将逻辑翻译与操作系统页面表解耦,使数据库管理系统能够结合低开销翻译与大页支持的帧和细粒度页面管理。为了使数组翻译在具有大稀疏分层页面标识符的数据库管理系统中实用且高效,\calico引入了三种技术:多级翻译与路径缓存、洞 punching 用于回收冷翻译内存,以及组预取以利用并行性。我们的评估显示,在扫描、OLTP风格的B树访问和向量搜索中,\calico在内存和非内存性能上匹配或优于现有最先进水平。我们还实现了\calico作为PostgreSQL缓冲管理器的直接替代品,并将其与pgvector集成。在向量搜索和扫描密集型工作负载中,\calico为PostgreSQL向量搜索提供了高达3.9$\times$的内存性能提升,以及6.5$\times$的非内存速度提升,同时将扫描密集型查询的速度提升了高达3$\times$。

英文摘要:

Modern buffer pools must now support a broader workload mix than classic OLTP alone. In addition to B-tree lookups, database systems increasingly serve scan-heavy analytics and vector-search indexes with irregular high-fan-out graph traversal access patterns. These workloads require a translation mechanism -- mapping logical page IDs to resident frames -- that is simultaneously fast across these diverse access patterns, deployable in user space,compatible with huge pages, easy to integrate, and still under DBMS control for eviction and I/O. Existing designs satisfy only subsets of these goals. This paper presents \textbf{\calico}, a practical DBMS-controlled buffer pool built around array-based translation, a decades-old-idea that was dissmissed but now viable with modern hardware. \calico decouples logical translation from OS page tables so that the DBMS can combine low-overhead translation with huge-page-backed frames and fine-grained page management. To make array translation practical and performant for DBMSes with large sparse hierarchical page identifiers, \calico introduces three techniques: multi-level translation with path caching, hole punching for reclaiming cold translation memory, and group prefetch to exploit parallelism. Our evaluation across scans, OLTP-style B-tree accesses, and vector search shows that \calico matches or outperforms the existing state-of-the-art in-memory and out-of-memory performance. We also implement \calico as a drop-in replacement for PostgreSQL's buffer manager and integrate it with \texttt{pgvector}. Across vector search, and scan-heavy workloads, \calico delivers up to 3.9$\times$ in-memory and 6.5$\times$ larger-than-memory speedup for PostgreSQL vector search, speeds up scan-heavy queries by up to 3$\times$.

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

↑