External-memory Dictionaries in the Affine and PDAM Models

Author:

Bender Michael A.1,Conway Alex2,Farach-Colton Martín3,Jannen William4,Jiao Yizheng5,Johnson Rob2,Knorr Eric6,Mcallister Sara7,Mukherjee Nirjhar8,Pandey Prashant9,Porter Donald E.5,Yuan Jun10,Zhan Yang5

Affiliation:

1. Stony Brook University, Stony Brook, NY

2. VMware Research, Palo Alto, USA

3. Rutgers University, Piscataway, NJ USA

4. Williams College, Williamstown, USA

5. The University of North Carolina at Chapel Hill, Chapel Hill, USA

6. Harvard University, Boston, USA

7. Carnegie Mellon University, Forbes Avenue, Pittsburgh, USA

8. The University of North Carolina at Chapel Hill

9. Lawrence Berkeley National Laboratory and University of California Berkeley, Berkeley, USA

10. Pace University, New York, USA

Abstract

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, then the DAM approximates the IO cost on any hardware to within a factor of 2. Furthermore, the DAM model explains the popularity of B-trees in the 1970s 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 article, 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 B-trees are 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.

Funder

NSF

Sandia National Laboratories

VMware

Netapp Faculty Fellowship

Publisher

Association for Computing Machinery (ACM)

Subject

Computational Theory and Mathematics,Computer Science Applications,Hardware and Architecture,Modeling and Simulation,Software

Reference77 articles.

1. mkfs.btrfs. [n.d.]. Manual page. Retrieved from https://btrfs.wiki.kernel.org/index.php/Manpage/mkfs.btrfs. mkfs.btrfs. [n.d.]. Manual page. Retrieved from https://btrfs.wiki.kernel.org/index.php/Manpage/mkfs.btrfs.

2. The input/output complexity of sorting and related problems;Aggarwal Alok;Commun. ACM,1988

3. New algorithms for disk scheduling;Andrews Matthew;Algorithmica,2002

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3