Search arXiv⌕ Search

arXiv subjects

Constantin Pestka

Publications and source records attributed to Constantin Pestka.

2 recordsLinked to original sources

TimeVault: A B+ Tree with RCU-based Multi-Versioning

As CPU core counts grow, concurrent indexes require synchronization that scales efficiently. In pursuit of scalability, some indexes have adopted Read-Copy-Update (RCU). And while RCU is indeed highly scalable, especially in read-heavy scenarios, RCU's potential extends beyond efficient synchronization. RCU implementations internally create and manage multiple versions of the protected data for synchronization purposes, but do not expose access to older versions to the user. At the same time, MVCC requires multi-version capabilities, such as access to older versions, which DBMSs typically implement separately on top of the used indexes. We present TimeVault, an RCU-based B+ tree that fuses both multi-versioning systems into one dual-purpose system. To this end, we extend traditional QSBR-RCU to Multi-Version RCU, which enables support for atomic range queries and time-travel queries. We further devise Speculative Traversal Locking, a novel, highly efficient locking scheme based on the existence guarantees provided by RCU. In workloads including writes or range queries, TimeVault achieves on average 2-4x and up to 160x higher throughput and up to three orders of magnitude lower tail latency than state-of-the-art indexes.

cs.DB↗

Asynchronous I/O -- With Great Power Comes Great Responsibility

The performance of storage hardware has improved vastly recently, leaving the traditional I/O stack incapable of exploiting these gains due to increasingly large relative overheads. Newer asynchronous I/O APIs, such as io_uring, have significantly improved performance by reducing such overheads, but exhibit limited adoption in practice. In this paper, we discuss the complexities that the usage of these contemporary I/O APIs introduces to applications, which we believe are mostly responsible for their low adoption rate. Finally, we share implications and trade offs made by architectures that may be used to integrate asynchronous I/O into DB applications.

cs.DB↗