Lune

EuroSys2021Top-tier venue

Bridging the performance gap for copy-based garbage collectors atop non-volatile memory

Yanfei Yang, Mingyu Wu, Haibo Chen, Binyu Zang

Abstract

Non-volatile memory (NVM) is expected to revolutionize the memory hierarchy with not only non-volatility but also large capacity and power efficiency. Memory-intensive applications, which are often written in managed languages like Java, would run atop NVM for better cost-efficiency. Unfortunately, such applications may suffer from performance slowdown due to the unmanaged performance gap between DRAM and NVM. This paper studies the performance of a series of Java applications atop NVM and uncovers that the copy-based garbage collection (GC), the mainstream GC algorithm, is an NVM-unfriendly component in JVM. GC becomes a severe performance bottleneck especially when memory resource is scarce. To this end, this paper analyzes the memory behavior of copy-based GC and uncovers that its inappropriate usage on NVM bandwidth is the main reason for its performance slowdown. This paper thus proposes two NVM-aware optimizations: write cache and header map, to effectively manage the limited NVM bandwidth. It further improves the GC performance with hardware instructions like non-temporal memory accesses and prefetching. We have implemented the optimizations on two mainstream copy-based garbage collectors in OpenJDK. Evaluation with various memory-intensive applications shows that our optimizations can improve the GC time, application execution time, application tail latency by up to 2.69×, 11.0%, and 5.09×, respectively.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Pacman: An Efficient Compaction Approach for Log-Structured Key-Value Store on Persistent Memory cites FlatStore: An Efficient Log-Structured Key-Value Storage Engine for Persistent Memory
  • Pacman: An Efficient Compaction Approach for Log-Structured Key-Value Store on Persistent Memory cites An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
  • TeraHeap: Reducing Memory Pressure in Managed Big Data Frameworks cites An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
  • Lock-free Concurrent Level Hashing for Persistent Memory cites An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Pacman: An Efficient Compaction Approach for Log-Structured Key-Value Store on Persistent MemoryJing Wang, Youyou Lu, Qing Wang, Minhui Xie et al.USENIX ATC 2022 · 44 citations
  2. TeraHeap: Reducing Memory Pressure in Managed Big Data FrameworksIacovos G. Kolokasis, Giannos Evdorou, Shoaib Akram, Christos Kozanitis et al.ASPLOS 2023 · 15 citations
  3. FFCCD: fence-free crash-consistent concurrent defragmentation for persistent memoryYuanchao Xu, Chencheng Ye, Yan Solihin, Xipeng ShenISCA 2022 · 9 citations
  4. Jade: A High-throughput Concurrent Copying Garbage CollectorMingyu Wu, Liang Mao, Yude Lin, Yifeng Jin et al.EuroSys 2024 · 5 citations
  5. Characterization and Reclamation of Frozen Garbage in Managed FaaS WorkloadsZiming Zhao, Mingyu Wu, Haibo Chen, Binyu ZangEuroSys 2024 · 2 citations

Builds on8

  1. An Empirical Guide to the Behavior and Use of Scalable Persistent MemoryJian Yang, Juno Kim, Morteza Hoseinzadeh, Joseph Izraelevitz et al.FAST 2020 · 470 citations
  2. FlatStore: An Efficient Log-Structured Key-Value Storage Engine for Persistent MemoryYoumin Chen, Youyou Lu, Fan Yang, Qing Wang et al.ASPLOS 2020 · 166 citations
  3. Lock-free Concurrent Level Hashing for Persistent MemoryZhangyu Chen, Yu Hua, Bo Ding, Pengfei ZuoUSENIX ATC 2020 · 98 citations
  4. Classifying Memory Access Patterns for PrefetchingGrant Ayers, Heiner Litz, Christos Kozyrakis, Parthasarathy RanganathanASPLOS 2020 · 83 citations
  5. AutoTM: Automatic Tensor Movement in Heterogeneous Memory Systems using Integer Linear ProgrammingMark Hildebrand, Jawad Khan, Sanjeev Trika, Jason Lowe-Power et al.ASPLOS 2020 · 70 citations

Related papers

  1. Uncovering Hidden Memory Costs for Garbage CollectionSudhanshu Agarwal, Saugata GhoseOOPSLA 2026
  2. JPDHeap: A JVM Heap Design for PM-DRAM MemoriesLitong You, Tianxiao Gu, Shengan Zheng, Jianmei Guo et al.DAC 2021 · 2 citations
  3. HeMem: Scalable Tiered Memory Management for Big Data Applications and Real NVMAmanda Raybuck, Tim Stamler, Wei Zhang, Mattan Erez et al.SOSP 2021 · 93 citations
  4. J-NVM: Off-heap Persistent Objects in JavaAnatole Lefort, Yohan Pipereau, Kwabena Amponsem, Pierre Sutra et al.SOSP 2021 · 3 citations
  5. MT^2: Memory Bandwidth Regulation on Hybrid NVM/DRAM PlatformsJifei Yi, Benchao Dong, Mingkai Dong, Ruizhe Tong et al.FAST 2022 · 23 citations
Dusk over the sea between two cliffs drawn in fine vertical lines