列式格式中嵌套数据的并行写入
Parallel Writing of Nested Data in Columnar Formats
AI总结:
本文针对高能物理中 ROOT 列式格式嵌套数据行大小未知导致并行写入困难的问题,提出一种可扩展的多线程写入方法,在保持压缩和列式表示兼容的同时消除单一写入者瓶颈,并在合成基准和数据集瘦身应用中验证了其近乎完美的可扩展性。
摘要:
高能物理(HEP)实验,例如欧洲核子研究中心(CERN)大型强子对撞机(LHC)上的实验,以艾字节(exabyte)规模将数据存储在多组文件中。它们使用 ROOT 框架提供的一种二进制列式数据格式,该框架还会对数据进行透明压缩。在这种格式中,单元不一定是原子的,而可能包含大小可变的嵌套集合。行大小和块大小无法预先知道这一事实,使得实现高效的并行写入具有挑战性。特别是,数据无法组织成规则网格,从而无法预先计算索引和偏移量以进行独立写入。在本文中,我们提出了一种可扩展的方法,用于将列式格式的嵌套数据高效地多线程写入单个文件。我们的方法消除了单一写入者的瓶颈,同时与压缩的、列式的、行大小可变的数据表示完全兼容。我们讨论了我们的设计选择以及为 ROOT 的 RNTuple 格式实现可扩展并行写入的方案。对我们方法的评估表明,在合成基准测试中,其可扩展性近乎完美,仅受存储带宽限制。最后,我们评估了该方法在数据集瘦身(dataset skimming)这一实际应用中的收益。
英文摘要:
High Energy Physics (HEP) experiments, for example at the Large Hadron Collider (LHC) at CERN, store data at exabyte scale in sets of files. They use a binary columnar data format by the ROOT framework, that also transparently compresses the data. In this format, cells are not necessarily atomic but they may contain nested collections of variable size. The fact that row and block sizes are not known upfront makes it challenging to implement efficient parallel writing. In particular, the data cannot be organized in a regular grid where it is possible to precompute indices and offsets for independent writing. In this paper, we propose a scalable approach to efficient multithreaded writing of nested data in columnar format into a single file. Our approach removes the bottleneck of a single writer while staying fully compatible with the compressed, columnar, variably row-sized data representation. We discuss our design choices and the implementation of scalable parallel writing for ROOT's RNTuple format. An evaluation of our approach shows perfect scalability only limited by storage bandwidth for a synthetic benchmark. Finally we evaluate the benefits for a real-world application of dataset skimming.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。