Rapidgzip:利用缓存预取实现 Gzip 文件的并行解压与寻址
Rapidgzip: Parallel Decompression and Seeking in Gzip Files Using Cache Prefetching
AI总结:
本文提出 Rapidgzip,通过缓存与并行预取泛化 pugz 的并行解压方案,使其支持任意 gzip 文件,并在 128 核上实现最高 8.7 GB/s 解压带宽。
摘要:
Gzip 是一种被广泛使用的文件压缩格式。尽管存在众多 gzip 实现,但只有 pugz 能够在解压时充分利用当前的多核处理器架构。然而,pugz 无法解压任意 gzip 文件。它要求解压后的数据流仅包含字节值 9 到 126。在本工作中,我们提出了 pugz 所采用并行化方案的一种泛化版本,能够可靠地应用于任意 gzip 压缩数据,同时不损失性能。我们表明,通过实现一种基于缓存和并行化预取器的架构,可以取消 pugz 对文件内容提出的要求。该架构能够安全处理错误的解压结果;当线程通过试错方式从 gzip 文件中间开始解压时,可能会出现这类结果。使用 128 个核心时,对于经 gzip 压缩的 base64 编码数据,我们的实现达到 8.7 GB/s 的解压带宽,相比单线程 GNU gzip 加速 55 倍;对于 Silesia 语料库达到 5.6 GB/s,相比 GNU gzip 加速 33 倍。
英文摘要:
Gzip is a file compression format, which is ubiquitously used. Although a multitude of gzip implementations exist, only pugz can fully utilize current multi-core processor architectures for decompression. Yet, pugz cannot decompress arbitrary gzip files. It requires the decompressed stream to only contain byte values 9-126. In this work, we present a generalization of the parallelization scheme used by pugz that can be reliably applied to arbitrary gzip-compressed data without compromising performance. We show that the requirements on the file contents posed by pugz can be dropped by implementing an architecture based on a cache and a parallelized prefetcher. This architecture can safely handle faulty decompression results, which can appear when threads start decompressing in the middle of a gzip file by using trial and error. Using 128 cores, our implementation reaches 8.7 GB/s decompression bandwidth for gzip-compressed base64-encoded data, a speedup of 55 over the single-threaded GNU gzip, and 5.6 GB/s for the Silesia corpus, a speedup of 33 over GNU gzip.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。