Killing Processes or Killing Flash? Escaping from the Dilemma Using Lightweight, Compression-Aware Swap for Mobile Devices

Author:

Wang Yong-Xuan1,Tsai Chung-Hsuan1,Chang Li-Pin1

Affiliation:

1. National Yang Ming Chiao Tung University, Hsinchu, Taiwan

Abstract

Android apps become increasingly memory-demanding as software vendors add more and more new features to their apps. In the mean time, Android users often launch multiple apps and conveniently switch back and forth among the apps. Although running multiple apps imposes a high pressure on memory management, virtual-memory swap, an essential feature to improve the degree of multitasking, is disabled in fear of premature retirement of flash-based storage devices. Instead, Android employs a termination-based, process-level memory reclaiming method. We observed that process killing is, unfortunately, not effective in memory reclaiming and is highly negative to user experience. In this study, we advocate re-thinking using swap in Android for improved user experience with managed write stress on flash storage. Based on a series of empirical analyses of swap activities, we propose an enhanced page replacement policy and a page-compressing frontswap module. The proposed page replacement policy jointly considers page activeness and compressibility to boost the compression ratio of swap writes. A sampled-based method for page compressibility prediction is introduced so that decisions on page replacement can be made without compressing every page. We also design a frontswap module that strategically organizes compressed pages in the swap space for reducing the overhead of swap I/O operations. Experimental results showed that compared with process killing, our method improved the app launching time and energy consumption by 58% and 19%, respectively; compared with the original swap, our approach reduced the swap write stress by 65%.

Funder

Ministry of Science and Technology, Taiwan

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference39 articles.

1. 2019. Evolution of 4D NAND Flash Opens the Era of Terabyte Smartphones. https://news.skhynix.com/evolution-of-4d-nand-flash-opens-the-era-of-terabyte-smartphones/. 2019. Evolution of 4D NAND Flash Opens the Era of Terabyte Smartphones. https://news.skhynix.com/evolution-of-4d-nand-flash-opens-the-era-of-terabyte-smartphones/.

2. 2019. malloc.c. https://code.woboq.org/userspace/glibc/malloc/malloc.c.html. 2019. malloc.c. https://code.woboq.org/userspace/glibc/malloc/malloc.c.html.

3. 2020. Processes and Application Lifecycle. https://developer.android.com/guide/components/activities/process-lifecycle. 2020. Processes and Application Lifecycle. https://developer.android.com/guide/components/activities/process-lifecycle.

4. 2021. Interpretation of Android Process Priority ADJ Algorithm. https://www.programmersought.com/article/21871123903/. 2021. Interpretation of Android Process Priority ADJ Algorithm. https://www.programmersought.com/article/21871123903/.

5. 2021. Low Memory Killer Daemon (lmkd): Android Open Source Project. https://source.android.com/devices/tech/perf/lmkd. 2021. Low Memory Killer Daemon (lmkd): Android Open Source Project. https://source.android.com/devices/tech/perf/lmkd.

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Memory Management on Mobile Devices;Proceedings of the 2024 ACM SIGPLAN International Symposium on Memory Management;2024-06-20

2. Rectifying Skewed Kernel Page Reclamation in Mobile Devices for Improving User-Perceivable Latency;ACM Transactions on Embedded Computing Systems;2023-09-09

3. IOSR: Improving I/O Efficiency for Memory Swapping on Mobile Devices Via Scheduling and Reshaping;ACM Transactions on Embedded Computing Systems;2023-09-09

4. REFROM: Responsive, Energy-Efficient Frame Rendering for Mobile Devices;2023 IEEE/ACM International Symposium on Low Power Electronics and Design (ISLPED);2023-08-07

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3