A Calibrated Relaunch Distance Framework for App Eviction in Smartphone Memory Management
Abstract
1. Introduction
- We formulate smartphone app eviction as a relaunch distance ranking problem and show why pure relaunch distance predictions can still produce unstable victim orderings when many apps return after only a few distinct intervening launches.
- We propose a calibrated eviction framework that maps clipped relaunch distance predictions and recency fallback into a single runtime score. The framework uses a distance aging approach based on recency and explicit handling of non-returning cases, allowing mixed candidate sets to be compared consistently at runtime.
- We evaluate LRU, oracle relaunch distance, raw prediction, and the proposed calibrated policy under time series splits and fixed-capacity app cache simulation. On the all-user set, the proposed method stays above LRU from to , while subgroup analysis shows that the largest gains appear for users with deeper histories.
2. Related Work
2.1. Smartphone Memory Reclamation
2.2. Predictive App Usage Context
3. Calibrated Relaunch Distance Prediction
3.1. Problem Formulation
3.2. Prediction Model
3.3. Fallback and Scoring
3.4. Online Updates and Victim Selection
4. Experimental Setup
4.1. Dataset Preparation
4.2. Model Benchmark Setup
4.3. AOSP Implementation and Emulator Setup
5. Performance Evaluation
5.1. Main Results
5.2. Quartile Analysis Based on Launch Count
5.3. Emulator Benchmark Results
5.4. Discussion
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Huang, J.; Zhang, Y.; Qiu, J.; Liang, Y.; Ausavarungnirun, R.; Li, Q.; Xue, C.J. More Apps, Faster Hot-Launch on Mobile Devices via Fore/Background-aware GC-Swap Co-design. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems; ASPLOS ’24; Association for Computing Machinery: New York, NY, USA, 2024; Volume 3, pp. 654–670. [Google Scholar] [CrossRef]
- Kim, J.; Bahn, H. Maintaining Application Context of Smartphones by Selectively Supporting Swap and Kill. IEEE Access 2020, 8, 85140–85153. [Google Scholar] [CrossRef]
- Kim, J.; Bahn, H. Analysis of Smartphone I/O Characteristics—Toward Efficient Swap in a Smartphone. IEEE Access 2019, 7, 129930–129941. [Google Scholar] [CrossRef]
- Han, J.; Kim, S.; Lee, S.; Lee, J.; Kim, S.J. A Hybrid Swapping Scheme Based On Per-Process Reclaim for Performance Improvement of Android Smartphones (August 2018). IEEE Access 2018, 6, 56099–56108. [Google Scholar] [CrossRef]
- Li, C.; Bao, J.; Wang, H. Optimizing low memory killers for mobile devices using reinforcement learning. In Proceedings of the 2017 13th International Wireless Communications and Mobile Computing Conference (IWCMC); IEEE: New York, NY, USA, 2017; pp. 2169–2174. [Google Scholar] [CrossRef]
- Huang, K.; Zhang, C.; Ma, X.; Chen, G. Predicting mobile application usage using contextual information. In Proceedings of the 2012 ACM Conference on Ubiquitous Computing; Ubicomp ’12; ACM: New York, NY, USA, 2012; pp. 1059–1065. [Google Scholar] [CrossRef]
- Yan, T.; Chu, D.; Ganesan, D.; Kansal, A.; Liu, J. Fast app launching for mobile devices using predictive user context. In Proceedings of the 10th International Conference on Mobile Systems, Applications, and Services; MobiSys ’12; ACM: New York, NY, USA, 2012; pp. 113–126. [Google Scholar] [CrossRef]
- Parate, A.; Böhmer, M.; Chu, D.; Ganesan, D.; Marlin, B.M. Practical prediction and prefetch for faster access to applications on mobile phones. In Proceedings of the 2013 ACM International Joint Conference on Pervasive and Ubiquitous Computing; UbiComp ’13; ACM: New York, NY, USA, 2013; pp. 275–284. [Google Scholar] [CrossRef]
- Baeza-Yates, R.; Jiang, D.; Silvestri, F.; Harrison, B. Predicting The Next App That You Are Going To Use. In Proceedings of the Eighth ACM International Conference on Web Search and Data Mining; WSDM 2015; ACM: New York, NY, USA, 2015; pp. 285–294. [Google Scholar] [CrossRef]
- Xu, S.; Li, W.; Zhang, X.; Gao, S.; Zhan, T.; Zhao, Y.; Zhu, W.W.; Sun, T. Predicting Smartphone App Usage with Recurrent Neural Networks. In Wireless Algorithms, Systems, and Applications; Springer International Publishing: Berlin/Heidelberg, Germany, 2018; Chapter 44; pp. 532–544. [Google Scholar] [CrossRef]
- Zhao, S.; Luo, Z.; Jiang, Z.; Wang, H.; Xu, F.; Li, S.; Yin, J.; Pan, G. AppUsage2Vec: Modeling Smartphone App Usage for Prediction. In Proceedings of the 2019 IEEE 35th International Conference on Data Engineering (ICDE); IEEE: New York, NY, USA, 2019; pp. 1322–1333. [Google Scholar] [CrossRef]
- Moreira, G.S.; Jo, H.; Jeong, J. NAP: Natural App Processing for Predictive User Contexts in Mobile Smartphones. Appl. Sci. 2020, 10, 6657. [Google Scholar] [CrossRef]
- Alruban, A. Prediction of Application Usage on Smartphones via Deep Learning. IEEE Access 2022, 10, 49198–49206. [Google Scholar] [CrossRef]
- Katsarou, K.; Yu, G.; Beierle, F. WhatsNextApp: LSTM-Based Next-App Prediction with App Usage Sequences. IEEE Access 2022, 10, 18233–18247. [Google Scholar] [CrossRef]
- Lee, J.; Park, S. An Efficient Memory Management for Mobile Operating Systems Based on Prediction of Relaunch Distance. Comput. Syst. Sci. Eng. 2023, 47, 171–186. [Google Scholar] [CrossRef]
- Moon, G.; Kang, D. VSwap: A New Extension to the Swap Mechanism for Enabling Swap Memory Space Optimization. Appl. Sci. 2025, 15, 12049. [Google Scholar] [CrossRef]
- Kim, S.H.; Jeong, J.; Kim, J.S.; Maeng, S. SmartLMK: A Memory Reclamation Scheme for Improving User-Perceived App Launch Time. ACM Trans. Embed. Comput. Syst. 2016, 15, 47. [Google Scholar] [CrossRef] [PubMed]
- Li, X.; Yang, Z.; Wu, M.; Chen, H.; Zang, B. Object-Aware Memory Compression for Smartphones. ACM Trans. Archit. Code Optim. 2025, 22, 139. [Google Scholar] [CrossRef]
- Kim, S.H.; Jeong, J.; Kim, J.S. Application-Aware Swapping for Mobile Systems. ACM Trans. Embed. Comput. Syst. 2017, 16, 182. [Google Scholar] [CrossRef]
- Yoon, H.; Cho, K.; Bahn, H. Storage Type and Hot Partition Aware Page Reclamation for NVM Swap in Smartphones. Electronics 2022, 11, 386. [Google Scholar] [CrossRef]
- Challa, P.; Song, B.; Jiang, S. MemSaver: Enabling an All-in-memory Switch Experience for Many Apps in a Smartphone. In Proceedings of the 15th ACM/SPEC International Conference on Performance Engineering; ICPE ’24; ACM: New York, NY, USA, 2024; pp. 267–275. [Google Scholar] [CrossRef]
- Li, W.; Chang, L.P.; Mao, Y.; Shi, L. PMR: Fast Application Response via Parallel Memory Reclaim on Mobile Devices. In Proceedings of the 2025 USENIX Annual Technical Conference; USENIX Association: Berkeley, CA, USA, 2025; pp. 1569–1584. Available online: https://www.usenix.org/conference/atc25/presentation/li-wentong (accessed on 1 March 2026).
- Sareen, K.; Blackburn, S.M.; Hamouda, S.S.; Gidra, L. Memory Management on Mobile Devices. In Proceedings of the 2024 ACM SIGPLAN International Symposium on Memory Management; ISMM ’24; ACM: New York, NY, USA, 2024; pp. 15–29. [Google Scholar] [CrossRef]
- Xia, T.; Li, Y.; Feng, J.; Jin, D.; Zhang, Q.; Luo, H.; Liao, Q. DeepApp: Predicting Personalized Smartphone App Usage via Context-Aware Multi-Task Learning. ACM Trans. Intell. Syst. Technol. 2020, 11, 64. [Google Scholar] [CrossRef]
- Wang, H.; Li, Y.; Du, M.; Li, Z.; Jin, D. App2Vec: Context-Aware Application Usage Prediction. ACM Trans. Knowl. Discov. Data 2021, 15, 112. [Google Scholar] [CrossRef]
- Ouyang, Y.; Guo, B.; Wang, Q.; Liang, Y.; Yu, Z. Learning Dynamic App Usage Graph for Next Mobile App Recommendation. IEEE Trans. Mob. Comput. 2023, 22, 4742–4753. [Google Scholar] [CrossRef]
- Huber, P.J. Robust Estimation of a Location Parameter. Ann. Math. Stat. 1964, 35, 73–101. [Google Scholar] [CrossRef]
- Vietri, G.; Rodriguez, L.V.; Martinez, W.A.; Lyons, S.; Liu, J.; Rangaswami, R.; Zhao, M.; Narasimhan, G. Driving Cache Replacement with ML-based LeCaR. In Proceedings of the 10th USENIX Workshop on Hot Topics in Storage and File Systems (HotStorage 18), Boston, MA, USA, 9–10 July 2018. [Google Scholar]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.U.; Polosukhin, I. Attention is All you Need. In Proceedings of the Advances in Neural Information Processing Systems; Guyon, I., Luxburg, U.V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., Garnett, R., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30. [Google Scholar]



| Item | Value |
|---|---|
| Trace source | LSApp dataset |
| Events/users/apps | 198,270/291/87 |
| Split ratio | train/validation/test = :: |
| Relaunch distance profile | , , |
| Clipping/non-returning | , |
| Evaluation users | 279 users with non-empty splits |
| User groups | q1: 11–88 (); q2: 89–223 (); q3: 225–593 (); q4: 597–12,753 () |
| Reported capacities |
| Item | Setting |
|---|---|
| Compared policies | LRU, Oracle-RD, LeCaR-APP, Hybrid-RD(LSTM), Calibrated-RD(Tx) |
| LeCaR-APP | initial weights ; learning rate ; history size C; discount rate |
| Hybrid-RD(LSTM) | Hidden sizes ; dropout 0.2; |
| Calibrated-RD | Context length 32; model dimension 128; 2 layers; 4 heads; dropout 0.2; ; ; trust coefficient |
| Loss parameters | ; ; Huber threshold |
| Item | Configuration |
|---|---|
| Host OS | macOS Tahoe 26.4.1 (25E253), arm64 |
| Host CPU | Apple M2 Max, 12 cores @ 3.70 GHz |
| Host GPU | Apple M2 Max, 38 cores @ 1.40 GHz, integrated |
| Host memory | 96.00 GiB |
| AOSP base | AOSP 16.0.0_r4 |
| Build target | sdk_phone64_arm64-userdebug |
| Guest CPU | 4 vCPU cores |
| Guest memory | 3 GiB RAM |
| Device type | ARM64 Android virtual device |
| Scope | LRU | Oracle-RD | LeCaR-APP | Hybrid-RD (LSTM) | Calibrated-RD (Tx) |
|---|---|---|---|---|---|
| 0.7617 | 0.7968 | 0.7672 | 0.7634 | 0.7691 | |
| –8 avg. | 0.8212 | 0.8455 | 0.8282 | 0.8220 | 0.8290 |
| 0.9098 | 0.9174 | 0.9143 | 0.9096 | 0.9120 | |
| 0.9541 | 0.9549 | 0.9550 | 0.9540 | 0.9536 | |
| AvgC | 0.8900 | 0.9017 | 0.8943 | 0.8903 | 0.8935 |
| Group | ΔLeCaR (C = 5) | ΔCal (C = 5) | ΔLeCaR (AvgC) | ΔCal (AvgC) |
|---|---|---|---|---|
| q1 | +0.0002 | +0.0056 | +0.0032 | +0.0039 |
| q2 | +0.0075 | +0.0046 | +0.0032 | +0.0013 |
| q3 | +0.0034 | +0.0059 | +0.0050 | +0.0037 |
| q4 | +0.0110 | +0.0138 | +0.0056 | +0.0047 |
| Item | Value |
|---|---|
| Quantized format | Mixed-INT8 |
| Residency footprint | 37 MiB |
| MAC operations per inference | 558 k |
| Mean inference time | 0.2 ms |
| Metric | LRU | Calibrated-RD (Tx) | Δ |
|---|---|---|---|
| Resume hit ratio | 0.9556 | 0.9594 | |
| Cold launch ratio | 0.1389 | 0.1367 | |
| Mean launch time per event (ms) | 235.40 | 233.66 | |
| P95 launch time (ms) | 602.0 | 600.0 | |
| pgfault | |||
| pgmajfault | |||
| pswpin | |||
| pswpout |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Lee, J.; Kyung, Y. A Calibrated Relaunch Distance Framework for App Eviction in Smartphone Memory Management. Electronics 2026, 15, 2415. https://doi.org/10.3390/electronics15112415
Lee J, Kyung Y. A Calibrated Relaunch Distance Framework for App Eviction in Smartphone Memory Management. Electronics. 2026; 15(11):2415. https://doi.org/10.3390/electronics15112415
Chicago/Turabian StyleLee, Jaehwan, and Yeunwoong Kyung. 2026. "A Calibrated Relaunch Distance Framework for App Eviction in Smartphone Memory Management" Electronics 15, no. 11: 2415. https://doi.org/10.3390/electronics15112415
APA StyleLee, J., & Kyung, Y. (2026). A Calibrated Relaunch Distance Framework for App Eviction in Smartphone Memory Management. Electronics, 15(11), 2415. https://doi.org/10.3390/electronics15112415

