Data Structure-Aware Heap Partitioning

被引:2
|
作者
Jaber, Nouraldin [1 ]
Kulkarni, Milind [1 ]
机构
[1] Purdue Univ, Sch Elect & Comp Engn, W Lafayette, IN 47907 USA
来源
CC'17: PROCEEDINGS OF THE 26TH INTERNATIONAL CONFERENCE ON COMPILER CONSTRUCTION | 2017年
关键词
Heap partitioning; Ownership types; Data structure identification; POINTS-TO ANALYSIS; OWNERSHIP TYPES; OBJECT-SENSITIVITY;
D O I
10.1145/3033019.3033030
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
There are many applications of program (or heap) partitioning, such as computation offloading, region-based memory management, and OS-driven memory locality optimizations. Although these applications are conceptually different, fundamentally, they must generate code such that objects in the heap (and hence the code that operates on those objects) get partitioned depending on how those objects are used. Regardless of the intended application goal, the granularity at which the heap is partitioned is the key factor in partition quality, and hence it needs to be carefully chosen. Previous work suggested two main granularities: class-based and allocation site-based, where objects from the same class (or those allocated at the same allocation site) are co-located. Both approaches share a critical drawback: data structures that are used in different ways can share the same class, or the same allocation sites for internal objects, and hence are forced to be co-located despite their different usage patterns. We introduce the notion of data structure-aware partitioning to allow different data structures to be placed in different partitions, even by existing tools and analyses that inherently operate in a class-based or allocation site-based manner. Our strategy consists of an analysis that infers ownership properties between objects to identify data structures, and a code generation phase that encodes this ownership information into objects' data types and allocation sites without changing the semantics of the code. We evaluate the quality of data structure-aware partitions by comparing it to the state-of-the-art allocation site-based partitioning on a subset of the DaCapo Benchmarks. Across a set of randomized trials, we had a median range of 5% to 25% reduction of cross-partition accesses, and, depending on partitioning decisions, up to a 95% reduction.
引用
收藏
页码:109 / 119
页数:11
相关论文
共 50 条
  • [1] Structure-Aware Data Consolidation
    Wu, Shihao
    Bertholet, Peter
    Huang, Hui
    Cohen-Or, Daniel
    Gong, Minglun
    Zwicker, Matthias
    IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2018, 40 (10) : 2529 - 2537
  • [2] Enhancement of range data using a structure-aware filter
    Park, Min Ki
    Lee, Yong Yi
    Jang, In Yeop
    Lee, Kwan H.
    COMPUTERS & GRAPHICS-UK, 2015, 48 : 48 - 59
  • [3] Structure-aware halftoning
    Pang, Wai-Man
    Qu, Yingge
    Wong, Tien-Tsin
    Cohen-Or, Daniel
    Heng, Pheng-Ann
    ACM TRANSACTIONS ON GRAPHICS, 2008, 27 (03):
  • [4] SIDR: Structure-Aware Intelligent Data Routing in Hadoop
    Buck, Joe
    Watkins, Noah
    Levin, Greg
    Crume, Adam
    Ioannidou, Kleoni
    Brandt, Scott
    Maltzahn, Carlos
    Polyzotis, Neoklis
    Torres, Aaron
    2013 INTERNATIONAL CONFERENCE FOR HIGH PERFORMANCE COMPUTING, NETWORKING, STORAGE AND ANALYSIS (SC), 2013,
  • [5] Parallel structure-aware halftoning
    Wu, Huisi
    Wong, Tien-Tsin
    Heng, Pheng-Ann
    MULTIMEDIA TOOLS AND APPLICATIONS, 2013, 67 (03) : 529 - 547
  • [6] Structure-Aware Hair Capture
    Luo, Linjie
    Li, Hao
    Rusinkiewicz, Szymon
    ACM TRANSACTIONS ON GRAPHICS, 2013, 32 (04):
  • [7] Structure-Aware Error Diffusion
    Chang, Jianghao
    Alain, Benoit
    Ostromoukhov, Victor
    ACM TRANSACTIONS ON GRAPHICS, 2009, 28 (05): : 1 - 8
  • [8] Structure-aware image fusion
    Li, Wen
    Xie, Yuange
    Zhou, Haole
    Han, Ying
    Zhan, Kun
    OPTIK, 2018, 172 : 1 - 11
  • [9] Structure-aware Visualization Retrieval
    Li, Haotian
    Wang, Yong
    Wu, Aoyu
    Wei, Huan
    Qu, Huamin
    PROCEEDINGS OF THE 2022 CHI CONFERENCE ON HUMAN FACTORS IN COMPUTING SYSTEMS (CHI' 22), 2022,
  • [10] Accelerating BFS via Data Structure-Aware Prefetching on GPU
    Guo, Hui
    Huang, Libo
    Lu, Yashuai
    Ma, Jianqiao
    Qian, Cheng
    Ma, Sheng
    Wang, Zhiying
    IEEE ACCESS, 2018, 6 : 60234 - 60248