arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.05162cs.DB
收藏

RESYSTANCE: 通过eBPF释放LSM树压缩的隐藏性能

RESYSTANCE: Unleashing Hidden Performance of Compaction in LSM-trees via eBPF

Sogang University(西江大学)

Hongsu Byun, Seungjae Lee, Honghyeon Yoo, Myoungjoon Kim, Sungyong Park

AI总结:

RESYSTANCE通过eBPF和io_uring优化LSM树压缩,减少系统调用开销,提升压缩性能和写入吞吐量

摘要:

高速存储设备如NVMe SSD的发展使I/O瓶颈从硬件转移到了软件。现代数据库系统也依赖于基于内核的I/O路径,频繁的系统调用调用和内核-用户空间转换导致相对较大的开销和性能下降。这个问题在基于日志结构化合并树(LSM树)的NoSQL数据库中尤为明显。我们发现,特别是背景压缩过程会生成大量的读系统调用,导致显著的开销。为了解决这个问题,我们提出了RESYSTANCE,它利用eBPF和io_uring来摆脱系统调用,释放压缩的隐藏性能潜力。RESYSTANCE通过io_uring提高磁盘I/O效率,在读操作中通过eBPF直接在内核中处理压缩,显著减少了软件堆栈的开销。此外,RESYSTANCE通过将关键I/O例程卸载到内核中,减少了用户-内核转换,而无需修改LSM树结构或压缩算法。RESYSTANCE通过db_bench、YCSB和OLTP工作负载进行了广泛评估。与基准RocksDB相比,它在压缩过程中减少了99%的系统调用调用次数,并将压缩时间缩短了50%。因此,在写密集型工作负载中,RESYSTANCE将吞吐量提高了高达75%,并将p99延迟降低了40%。

英文摘要:

The development of high-speed storage devices such as NVMe SSDs has shifted the primary I/O bottleneck from hardware to software. Modern database systems also rely on kernel-based I/O paths, where frequent system call invocations and kernel-user space transitions lead to relatively large overheads and performance degradation. This issue is particularly pronounced in Log-Structured Merge-tree (LSM-tree)-based NoSQL databases. We identified that, in particular, the background compaction process generates a large number of read system calls, causing significant overhead. To address this problem, we propose RESYSTANCE, which leverages eBPF and io_uring to free compaction from system calls and unlock hidden performance potential. RESYSTANCE improves disk I/O efficiency during read operations via io uring and significantly reduces software stack overhead by handling compaction directly inside the kernel through eBPF. Moreover, RESYSTANCE minimizes user-kernel transitions by offloading key I/O routines into the kernel without modifying the LSM-tree structure or compaction algorithm. RESYSTANCE was extensively evaluated using db_bench, YCSB, and OLTP workloads. Compared to baseline RocksDB, it reduced the average number of system call invocations during compaction by 99% and shortened compaction time by 50%. Consequently, in write-intensive workloads, RESYSTANCE improved throughput by up to 75% and reduced the p99 latency by 40%.

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

↑