Lune

ASPLOS2023Top-tier venue

TeraHeap: Reducing Memory Pressure in Managed Big Data Frameworks

Iacovos G. Kolokasis, Giannos Evdorou, Shoaib Akram, Christos Kozanitis, Anastasios Papagiannis, Foivos S. Zakkak, Polyvios Pratikakis, Angelos Bilas

Abstract

Big data analytics frameworks, such as Spark and Giraph, need to process and cache massive amounts of data that do not always fit on the managed heap. Therefore, frameworks temporarily move long-lived objects outside the managed heap (off-heap) on a fast storage device. However, this practice results in (1) high serialization/deserialization (S/D) cost and (2) high memory pressure when off-heap objects are moved back to the heap for processing.

In this paper, we propose TeraHeap, a system that eliminates S/D overhead and expensive GC scans for a large portion of the objects in big data frameworks. TeraHeap relies on three concepts. (1) It eliminates S/D cost by extending the managed runtime (JVM) to use a second high-capacity heap (H2) over a fast storage device. (2) It offers a simple hint-based interface, allowing big data analytics frameworks to leverage knowledge about objects to populate H2. (3) It reduces GC cost by fencing the garbage collector from scanning H2 objects while maintaining the illusion of a single managed heap.

We implement TeraHeap in OpenJDK and evaluate it with 15 widely used applications in two real-world big data frameworks, Spark and Giraph. Our evaluation shows that for the same DRAM size, TeraHeap improves performance by up to 73% and 28% compared to native Spark and Giraph, respectively. Also, it provides better performance by consuming up to 4.6× and 1.2× less DRAM capacity than native Spark and Giraph, respectively. Finally, it outperforms Panthera, a state-of-the-art garbage collector for hybrid memories, by up to 69%.

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.

2 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

  • DShuffle: DPU-Optimized Shuffle Framework for Large-scale Data Processing cites A Specialized Architecture for Object Serialization with Applications to Big Data Analytics
  • More Apps, Faster Hot-Launch on Mobile Devices via Fore/Background-aware GC-Swap Co-design cites TMO: transparent memory offloading in datacenters
  • TMO: transparent memory offloading in datacenters 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 papers2

  1. More Apps, Faster Hot-Launch on Mobile Devices via Fore/Background-aware GC-Swap Co-designJiacheng Huang, Yunmo Zhang, Junqiao Qiu, Yu Liang et al.ASPLOS 2024 · 12 citations
  2. DShuffle: DPU-Optimized Shuffle Framework for Large-scale Data ProcessingChen Ding, Sicen Li, Kai Lu, Ting Yao et al.USENIX ATC 2025 · 2 citations

Builds on7

  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. TMO: transparent memory offloading in datacentersJohannes Weiner, Niket Agarwal, Dan Schatzberg, Leon Yang et al.ASPLOS 2022 · 103 citations
  3. Optimizing Memory-mapped I/O for Fast Storage DevicesAnastasios Papagiannis, Giorgos Xanthakis, Giorgos Saloustros, Manolis Marazakis et al.USENIX ATC 2020 · 68 citations
  4. Optimus Prime: Accelerating Data Transformation in ServersArash Pourhabibi Zarandi, Siddharth Gupta, Hussein Kassir, Mark Sutherland et al.ASPLOS 2020 · 43 citations
  5. A Specialized Architecture for Object Serialization with Applications to Big Data AnalyticsJaeyoung Jang, Sungjun Jung, Sunmin Jeong, Jun Heo et al.ISCA 2020 · 32 citations

Related papers

  1. FlexHeap: Dynamic I/O-Aware Heap Resizing for Managed ApplicationsIacovos G. Kolokasis, Shoaib Akram, Foivos S. Zakkak, Polyvios Pratikakis et al.PLDI 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. MTM: Rethinking Memory Profiling and Migration for Multi-Tiered Large MemoryJie Ren, Dong Xu, Junhee Ryu, Kwangsik Shin et al.EuroSys 2024 · 31 citations
  4. Naos: Serialization-free RDMA networking in JavaKonstantin Taranov, Rodrigo Bruno, Gustavo Alonso, Torsten HoeflerUSENIX ATC 2021 · 31 citations
  5. MegaMmap: Blurring the Boundary Between Memory and Storage for Data-Intensive WorkloadsLuke Logan, Anthony Kougkas, Xian-He SunSC 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines