Small Refinements to the DAM Can Have Big Consequences for Data-Structure Design

Small Refinements to the DAM Can Have Big Consequences for Data-Structure Design
复制标题

对 DAM 的小改进可能会对数据结构设计产生重大影响

DOI:
--
复制
发表时间:
2019
期刊:
ACM Symposium on Parallelism in Algorithms and Architectures
影响因子:
--
通讯作者:
Yang Zhan
Yang Zhan
中科院分区:
--
文献类型:
--
作者:
M. A. Bender;Alex Conway;Martín Farach;William K. Jannen;Yizheng Jiao;Rob Johnson;Eric R. Knorr;Sara McAllister;Nirjhar Mukherjee;P. Pandey;Donald E. Porter;Jun Yuan;Yang Zhan

文献摘要

参考文献

被引文献

相似文献

存储设备具有复杂的性能特征,包括启动I/O的成本(例如,硬盘驱动器中的寻道时间)、并行性和存储体冲突(在固态硬盘中)、数据传输成本以及固件内部操作。磁盘访问机(DAM)模型通过假设存储设备以大小为B的块传输数据且所有传输具有单位成本来简化实际情况。尽管进行了简化,但DAM模型相当准确。实际上,如果将B设置为半带宽点(此时硬件的延迟和带宽相等),DAM对任何硬件上的I/O成本的近似误差在2倍以内。此外,DAM解释了20世纪70年代B树的流行以及当前B树和日志结构合并树的流行。但它无法解释为什么一些B树使用小节点,而所有B树都使用大节点。在DAM中,所有I/O以及因此所有节点大小都相同。在本文中,我们表明仿射和PDAM模型(它们是DAM模型的小幅改进)在不牺牲易用性的情况下,在可预测性方面带来了令人惊讶的大幅提高。我们对大量存储设备进行了基准测试,结果表明仿射和PDAM模型分别对硬盘驱动器和固态硬盘的性能特征给出了良好的近似。我们表明仿射模型解释了B树和B + -树中节点大小的选择。此外,这些模型预测B树对节点大小的变化高度敏感,而B + -树则敏感度低得多。这些预测通过实验得到了证实。最后,我们表明在仿射和PDAM模型中,组织数据结构以利用不同的I/O大小是有益的。在仿射模型中,B树可以被优化,使得所有操作同时达到最优,甚至包括低阶项。在PDAM模型中,B树(或B + -树)可以被组织,以便高效地处理顺序和并发工作负载。我们得出结论,DAM模型在设计或分析算法或数据结构时作为初步模型是有用的,但仿射和PDAM模型使算法设计者能够优化参数选择并填充设计细节。
Storage devices have complex performance profiles, including costs to initiate IOs (e.g., seek times in hard drives), parallelism and bank conflicts (in SSDs), costs to transfer data, and firmware-internal operations. The Disk-Access Machine (DAM) model simplifies reality by assuming that storage devices transfer data in blocks of size B and that all transfers have unit cost. Despite its simplifications, the DAM model is reasonably accurate. In fact, if B is set to the half-bandwidth point, where the latency and bandwidth of the hardware are equal, the DAM approximates the IO cost on any hardware to within a factor of 2. Furthermore, the DAM explains the popularity of B-trees in the 70s and the current popularity of B-trees and log-structured merge trees. But it fails to explain why some B-trees use small nodes, whereas all B-trees use large nodes. In a DAM, all IOs, and hence all nodes, are the same size. In this paper, we show that the affine and PDAM models, which are small refinements of the DAM model, yield a surprisingly large improvement in predictability without sacrificing ease of use. We present benchmarks on a large collection of storage devices showing that the affine and PDAM models give good approximations of the performance characteristics of hard drives and SSDs, respectively. We show that the affine model explains node-size choices in B-trees and B+-trees. Furthermore, the models predict that the B-tree is highly sensitive to variations in the node size whereas B-trees are much less sensitive. These predictions are born out empirically. Finally, we show that in both the affine and PDAM models, it pays to organize data structures to exploit varying IO size. In the affine model, B-trees can be optimized so that all operations are simultaneously optimal, even up to lower order terms. In the PDAM model, B-trees (or B+-trees) can be organized so that both sequential and concurrent workloads are handled efficiently. We conclude that the DAM model is useful as a first cut when designing or analyzing an algorithm or data structure but the affine and PDAM models enable the algorithm designer to optimize parameter choices and fill in design details.
DOI: 10.1145/2935764.2935767
发表时间: 2016-07
期刊: Proceedings of the 28th ACM Symposium on Parallelism in Algorithms and Architectures
影响因子: --
作者:
N. Ben-David;G. Blelloch;Jeremy T. Fineman;Phillip B. Gibbons;Yan Gu;Charles McGuffey;Julian Shun
通讯作者: N. Ben-David;G. Blelloch;Jeremy T. Fineman;Phillip B. Gibbons;Yan Gu;Charles McGuffey;Julian Shun
DOI: 10.1145/3034786.3056117
发表时间: 2017-05
期刊: Proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems
影响因子: --
作者:
M. A. Bender;Martín Farach-Colton;Rob Johnson;Simon Mauras;Tyler Mayer;C. Phillips;Helen Xu
通讯作者: M. A. Bender;Martín Farach-Colton;Rob Johnson;Simon Mauras;Tyler Mayer;C. Phillips;Helen Xu
DOI: 10.1145/3210377.3210381
发表时间: 2018-05
期刊: Proceedings of the 30th on Symposium on Parallelism in Algorithms and Architectures
影响因子: --
作者:
G. Blelloch;Phillip B. Gibbons;Yan Gu;Charles McGuffey;Julian Shun
通讯作者: G. Blelloch;Phillip B. Gibbons;Yan Gu;Charles McGuffey;Julian Shun
DOI: 10.4230/lipics.icalp.2018.39
发表时间: 2018-05
期刊: --
影响因子: --
作者:
Alex Conway;Martín Farach-Colton;Philip Shilane
通讯作者: Alex Conway;Martín Farach-Colton;Philip Shilane