Lining up Garbage Collection and Application for a Far-Memory-Friendly Runtime
Far-memory techniques that enable applications to use remote memory are increasingly appealing in modern data centers, supporting applications’ large memory footprint and improving machines’ resource utilization. Unfortunately, most far-memory techniques focus on OS-level optimizations and are agnostic to managed runtimes and garbage collections (GC) underneath applications written in high-level languages. With different object-access patterns from applications, GC can severely interfere with existing far-memory techniques, breaking remote memory prefetching algorithms and causing severe local-memory misses. We developed MemLiner, a runtime technique that improves the performance of far-memory systems by aligning memory accesses from application and GC threads so that they follow similar memory access paths, thereby (1) reducing the local-memory working set and (2) improving remote-memory prefetching through simplified memory access patterns. We implemented MemLiner in two widely used GCs in OpenJDK: G1 and Shenandoah. Our evaluation with a range of widely deployed cloud systems shows that MemLiner improves applications’ end-to-end performance by up to 3.3× and reduces applications’ tail latency by up to 220.0× .
Authors
- Christian Navasca (ORCID: https://orcid.org/0009-0009-3948-3373)
- Haoran Ma (ORCID: https://orcid.org/0000-0002-4797-8562)
- Jonathan Eyolfson (ORCID: https://orcid.org/0000-0001-7443-4782)
- Shengkai Li
- Shan Lu (ORCID: https://orcid.org/0000-0002-0757-4600)
- Chenxi Wang (ORCID: https://orcid.org/0000-0002-1451-3101)
- Guoqing Xu (ORCID: https://orcid.org/0000-0003-4737-2146)
- Shi Liu
- Haonan Xue
- Yifan Qiao
Institutions
- University of California, Los Angeles (US)
- University of Toronto (CA)
- Peking University (CN)
- University of Chicago (US)
- University of Chinese Academy of Sciences (CN)
Publication Details
- Journal
- ACM Transactions on Computer Systems
- Published
- 2025-07-18
- DOI
- https://doi.org/10.1145/3749283
- Primary Topic
- Cloud Computing and Resource Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00