Upscaledb:使用SIMD指令的键值存储中的高效整数密钥压缩
Upscaledb: Efficient Integer-Key Compression in a Key-Value Store using SIMD Instructions
摘要:
压缩有时可以通过使更多的数据更快地提供给处理器来提高性能。我们考虑B+树索引中整数键的压缩。为此,IBM DB2等系统对差分编码的键使用可变字节压缩。我们重新审视这个问题与各种压缩替代品,如谷歌的VarIntGB,二进制打包和参考框架。在所有情况下,我们描述的算法,可以直接操作压缩数据。我们的许多替代方案利用现代CPU支持的单指令多数据(SIMD)指令。我们评估我们的技术在Upscaledb,生产质量的键值数据库提供的数据库环境。我们最好的技术是SIMD加速:它们在提高单线程速度的同时减少了内存使用。特别地,差分编码的SIMD二进制打包技术(BP 128)可以提供优异的查询速度(例如,比未压缩的数据库好40%),同时提供最佳压缩(例如,十倍)。对于分析工作负载,我们的快速压缩技术提供了令人信服的优势。我们的软件是开源的。
英文摘要:
Compression can sometimes improve performance by making more of the data available to the processors faster. We consider the compression of integer keys in a B+-tree index. For this purpose, systems such as IBM DB2 use variable-byte compression over differentially coded keys. We revisit this problem with various compression alternatives such as Google's VarIntGB, Binary Packing and Frame-of-Reference. In all cases, we describe algorithms that can operate directly on compressed data. Many of our alternatives exploit the single-instruction-multiple-data (SIMD) instructions supported by modern CPUs. We evaluate our techniques in a database environment provided by Upscaledb, a production-quality key-value database. Our best techniques are SIMD accelerated: they simultaneously reduce memory usage while improving single-threaded speeds. In particular, a differentially coded SIMD binary-packing techniques (BP128) can offer a superior query speed (e.g., 40% better than an uncompressed database) while providing the best compression (e.g., by a factor of ten). For analytic workloads, our fast compression techniques offer compelling benefits. Our software is available as open source.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。