You Can Have It All Abstraction and Good Cache Performance

被引:7
|
作者
Franco, Juliana [1 ]
Hagelin, Martin [2 ,3 ]
Wrigstad, Tobias [3 ]
Drossopoulou, Sophia [1 ]
Eisenbach, Susan [1 ]
机构
[1] Imperial Coll London, London, England
[2] Dirac, Uppsala, Sweden
[3] Uppsala Univ, Uppsala, Sweden
基金
英国工程与自然科学研究理事会; 瑞典研究理事会;
关键词
object layout; GARBAGE COLLECTION;
D O I
10.1145/3133850.3133861
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
On current architectures, the optimisation of an application's performance often involves data being stored according to access affinity - what is accessed together should be stored together, rather than logical affinity - what belongs together logically stays together. Such low level techniques lead to faster, but more error prone code, and end up tangling the program's logic with low-level data layout details. Our vision, which we call SHAPES- Safe, High-level, Abstractions for oPtimisation of mEmory cacheS - is that the layout of a data structure should be defined only once, upon instantiation, and the remainder of the code should be layout agnostic. This enables performance improvements while also guaranteeing memory safety, and supports the separation of program logic from low level concerns. In this paper we investigate how this vision can be supported by extending a programming language. We describe the core language features supporting this vision: classes can be customized to support different layouts, and layout information is carried around in types; the remaining source code is layout-unaware and the compiler emits layout-aware code. We then discuss our SHAPES implementation through a prototype library, which we also used for preliminary evaluations. Finally, we discuss how the core could be expanded so as to deliver SHAPES's full potential: the incorporation of compacting garbage collection, ad hoc polymorphism and late binding, synchronization of representations of different collections, support for dynamic change of representation, etc.
引用
收藏
页码:148 / 167
页数:20
相关论文
共 50 条
  • [1] Reducing Data Movement and Energy in Multilevel Cache Hierarchies without Losing Performance: Can you have it all?
    Wang, Jiajun
    Ramrakhyani, Prakash
    Elsasser, Wendy
    John, Lizy Kurian
    2019 28TH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES (PACT 2019), 2019, : 382 - 393
  • [2] Can You Have It All?
    Schwartz, Erin Simon
    APPLIED RADIOLOGY, 2023, 52 (03) : 6 - 6
  • [3] “You Can Have It All”
    Stratford Sherman
    许冕
    当代外语研究, 1998, (03) : 9 - 13
  • [4] 'You can have it all'
    Sherman, S
    FORTUNE, 1996, 133 (04) : 193 - 194
  • [5] Can you have it all?
    Good, Mary L.
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 2006, 231
  • [6] DO ALL GOOD YOU CAN
    REILLY, WP
    SAM ADVANCED MANAGEMENT JOURNAL, 1972, 37 (04): : 73 - &
  • [7] No, You Can't Have It All
    Sinoway, Eric C.
    HARVARD BUSINESS REVIEW, 2012, 90 (10) : 111 - +
  • [8] You can't have it all
    Nakamura, David N.
    OIL & GAS JOURNAL, 2007, 105 (27) : 15 - 15
  • [9] You can't have it all
    Neil S. Greenspan
    Nature, 2001, 409 : 137 - 137
  • [10] Speed and endurance: you can have it all
    Lee, Se-Jin
    JOURNAL OF APPLIED PHYSIOLOGY, 2010, 109 (03) : 621 - 622