Object-Aware Memory Compression for Smartphones
Open Access
- 16 December 2025
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Architecture and Code Optimization
- Vol. 22 (4) , 1-26
Abstract
Memory compression is vitally important in controlling the memory consumption of smartphones. Unfortunately, mainstream compression schemes like zRAM do not work well with garbage collection (GC) in managed language runtimes. When GC is triggered, it traces objects in the heap and thus causes frequent swapping and repetitive memory compression/decompression, which introduces significant performance overhead and user experience degradation. To this end, we propose an object-aware compressed memory scheme named oaRAM , which allows GC algorithms to directly interpret compressed memory and thus eliminates the need for decompression during GC. Furthermore, we build swap-less memory reclamation by further bridging the semantic gap between the memory compression module in OS and the garbage collector in the language runtime. On the OS side, we provide an object-aware memory compression module, which leverages object semantics from language runtimes to compress and manage data in the kernel. On the language runtime side, we propose shadow heap, which allows GC threads to directly access compressed contents in the kernel. We have implemented oaRAM on Android, and the evaluation results show that it significantly reduces the number of swapping operations under memory-hungry scenarios, which results in improvements in application performance, the system’s application caching capability and device lifespan.Keywords
Funding Information
- National Key Research & Development Program of China (2023YFB3308501)
- National Natural Science Foundation of China (62172272, 62202295, 62132014)
This publication has 45 references indexed in Scilit:
- MULTI-CLOCK: Dynamic Tiering for Hybrid Memory Systems2022
- Compresso: Pragmatic Main Memory Compression2018
- Error Characterization, Mitigation, and Recovery in Flash-Memory-Based Solid-State DrivesProceedings of the IEEE, 2017
- MARS: Mobile Application Relaunching Speed-Up through Flash-Aware Page SwappingIEEE Transactions on Computers, 2015
- Study on Garbage Collection Schemes for Flash-Based Linux Swap System2008
- Swap-Aware Garbage Collection for NAND Flash Memory Based Embedded Systems2007
- Garbage collection without paging2005
- The pauseless GC algorithm2005
- Real-time garbage collection for flash-memory storage systems of real-time embedded systemsACM Transactions on Embedded Computing Systems, 2004
- Garbage-first garbage collection2004