A Hardware Accelerator for Tracing Garbage Collection

被引:22
|
作者
Maas, Martin [1 ,2 ]
Asanovic, Krste [1 ]
Kubiatowicz, John [1 ]
机构
[1] Univ Calif Berkeley, Berkeley, CA 94720 USA
[2] Google Brain, Mountain View, CA 94043 USA
关键词
hardware accelerators; garbage collection; SoCs; language runtime systems; memory management;
D O I
10.1109/ISCA.2018.00022
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
A large number of workloads are written in garbage-collected languages. These applications spend up to 10-35% of their CPU cycles on GC, and these numbers increase further for pause-free concurrent collectors. As this amounts to a significant fraction of resources in scenarios ranging from data centers to mobile devices, reducing the cost of GC would improve the efficiency of a wide range of workloads. We propose to decrease these overheads by moving GC into a small hardware accelerator that is located close to the memory controller and performs GC more efficiently than a CPU. We first show a general design of such a GC accelerator and describe how it can be integrated into both stop-the-world and pause-free garbage collectors. We then demonstrate an end-to-end RTL prototype of this design, integrated into a RocketChip RISC-V System-on-Chip (SoC) executing full Java benchmarks within JikesRVM running under Linux on FPGAs. Our prototype performs the mark phase of a tracing GC at 4.2x the performance of an in-order CPU, at just 18.5% the area (an amount equivalent to 64KB of SRAM). By prototyping our design in a real system, we show that our accelerator can be adopted without invasive changes to the SoC, and estimate its performance, area and energy.
引用
收藏
页码:138 / 151
页数:14
相关论文
共 50 条
  • [1] A Hardware Accelerator for Tracing Garbage Collection
    Maas, Martin
    Asanovic, Krste
    Kubiatowicz, John
    [J]. IEEE MICRO, 2019, 39 (03) : 38 - 46
  • [2] Integrated Hardware Garbage Collection
    Garcia, Andres Amaya
    May, David
    Nutting, Ed
    [J]. ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2021, 20 (05)
  • [3] CONCURRENT GARBAGE COLLECTION ON STOCK HARDWARE
    NORTH, SC
    REPPY, JH
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1987, 274 : 113 - 133
  • [4] Improving Garbage Collection Observability with Performance Tracing
    Huang, Claire
    Blackburn, Stephen M.
    Cai, Zixian
    [J]. PROCEEDINGS OF THE 20TH ACM SIGPLAN INTERNATIONAL CONFERENCE ON MANAGED PROGRAMMING LANGUAGES AND RUNTIMES, MPLR 2023, 2023, : 85 - 99
  • [5] A localized tracing scheme applied to garbage collection
    Chicha, Yannis
    Watt, Stephen M.
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2006, 4279 : 323 - +
  • [6] Tracing Garbage Collection on Highly Parallel Platforms
    Barabash, Katherine
    Petrank, Erez
    [J]. ACM SIGPLAN NOTICES, 2010, 45 (08) : 1 - 10
  • [7] Hardware Accelerated Marking for Mark & Sweep Garbage Collection
    Kawamura, Shinji
    Tsumura, Tomoaki
    [J]. IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2018, E101D (04): : 1107 - 1115
  • [8] Exploring Garbage Collection with Haswell Hardware Transactional Memory
    Ritson, Carl G.
    Ugawa, Tomoharu
    Jones, Richard E.
    [J]. ACM SIGPLAN NOTICES, 2014, 49 (11) : 105 - 115
  • [9] Concurrent garbage collection using hardware-assisted profiling
    Heil, TH
    Smith, JE
    [J]. ACM SIGPLAN NOTICES, 2001, 36 (01) : 80 - 93
  • [10] Capability Boehm: Challenges and Opportunities for Garbage Collection with Capability Hardware
    Jacob, Dejice
    Singer, Jeremy
    [J]. PROCEEDINGS OF THE 18TH ACM SIGPLAN/SIGOPS INTERNATIONAL CONFERENCE ON VIRTUAL EXECUTION ENVIRONMENTS, VEE 2022, 2022, : 81 - 87