Back to search

Australian National University

Garbage Collection Across the Stack: From Software to Near-Memory Acceleration

Abstract

dc:description.abstract

Garbage collection (GC) provides memory safety, while improving programmer productivity. These properties have led to the increasing deployment of garbage-collected languages, from low-power mobile devices to latency-critical servers. This ubiquity has driven significant investment in GC design and implementation, hoping to improve GC's efficiency and responsiveness. Despite the considerable resources dedicated to GC research, a surprising lack of clarity remains regarding the true costs of GC. As I will show in this thesis, when implemented in software, GC imposes substantial overheads. Without this quantification, there is little incentive to invest in techniques requiring significant research and engineering effort, such as near-memory GC accelerators suitable for integration into commodity machines. My thesis is that software GCs are surprisingly costly, and that new techniques across the stack, such as hardware support, can deliver significant improvements. I develop three new methodologies and techniques across the computational stack, from software to hardware. First, I present the lower bound overhead (LBO) methodology, and quantify the substantial costs imposed by production software GCs. This revelation strongly motivates the development of kernel-based GC performance tracing tools, and a near-memory GC accelerator. Second, I show how kernel-based performance tracing improves GC observability, providing agility in performance debugging and optimization. Finally, I design and evaluate MAGC-DIMM---a new approach to near-memory processing (NMP) GC that integrates GC acceleration with each DIMM. The LBO methodology has helped the research community evolve our collective methodological foundations, and it has been used to evaluate GCs on platforms from phones to servers. The GC observability tooling is now a part of MMTk---a popular memory management framework---and has benefited the development of new research collectors, and the productization of existing ones. MAGC-DIMM demonstrates that near-memory GC acceleration can be practical and efficient; it uses 72x less cache area and significantly less logic area than a 16-hardware-thread CPU, while being only 1.4x slower. My thesis reaffirms that GC is by no means a solved problem, and shows that we can reap substantial benefits by designing and optimizing GC across the entire stack. This thesis encourages the research community to reexamine how we build, evaluate, and optimize low-level systems, such as GC. It also reinvigorates research into GC accelerators and provides a solid foundation for realizing them on a wider range of NMP architectures, encouraging their adoption in commodity hardware.

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Cai, Zixian
Advisor local:contributor.supervisor
  • Blackburn, Stephen
ResearcherID local:identifier.researcherid
  • OZD-6783-2025

Rights

Language dc:language.iso
en_AU

Identifiers

dc:identifier.*
Local Identifier Proquest
Yes
Local Identifier DOI
10.25911/X52K-9W47

Chain of custody

source
Harvested from
Australian National University
Base URL
openresearch-repository.anu.edu.au/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Cai, Zixian. Garbage Collection Across the Stack: From Software to Near-Memory Acceleration. 2026. https://hdl.handle.net/1885/733809234