Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/2525526.2525846acmconferencesArticle/Chapter ViewAbstractPublication PagessospConference Proceedingsconference-collections
research-article

Why application errors drain battery easily?: a study of memory leaks in smartphone apps

Published: 03 November 2013 Publication History
  • Get Citation Alerts
  • Abstract

    Mobile operating systems embrace new mechanisms that reduce energy consumption for common usage scenarios. The background app design is a representative implemented in all major mobile OSes. The OS keeps apps that are not currently interacting with the user in memory to avoid repeated app loading. This mechanism improves responsiveness and reduces the energy consumption when the user switches apps. However, we demonstrate that application errors, in particular memory leaks that cause system memory pressure, can easily cripple this mechanism. In this paper, we conduct experiments on real Android smartphones to 1) evaluate how the background app design improves responsiveness and saves energy; 2) characterize memory leaks in Android apps and outline its energy impact; 3) propose design improvements to retrofit the mechanism against memory leaks.

    References

    [1]
    J.d. power and associates reports: Smartphone battery life has become a significant drain on customer satisfaction and loyalty. https://pictures.dealer.com/jdpower/166f0d180a0d02b7014443191870cdac.pdf.
    [2]
    Bond, M. D., and McKinley, K. S. Bell: bit-encoding online memory leak detection. In ASPLOS'06.
    [3]
    Bond, M. D., and McKinley, K. S. Tolerating memory leaks. In OOPSLA '08.
    [4]
    Carroll, A., and Heiser, G. An analysis of power consumption in a smartphone. In USENIX ATC'10.
    [5]
    Hauswirth, M., and Chilimbi, T. M. Low-overhead memory leak detection using adaptive statistical profiling. In ASPLOS'04.
    [6]
    Jump, M., and McKinley, K. S. Cork: dynamic memory leak detection for garbage-collected languages. In POPL '07.
    [7]
    Mitchell, N., and Sevitsky, G. Leakbot: An automated and lightweight tool for diagnosing memory leaks in large java applications. In ECOOP'03.
    [8]
    Pathak, A., Hu, Y. C., and Zhang, M. Bootstrapping energy debugging on smartphones: a first look at energy bugs in mobile devices. In HotNets'11.
    [9]
    Pathak, A., Jindal, A., Hu, Y. C., and Midkiff, S. P. What is keeping my phone awake?: characterizing and detecting no-sleep energy bugs in smartphone apps. In MobiSys '12.
    [10]
    Shepard, C., Rahmati, A., Tossell, C., Zhong, L., and Kortum, P. Livelab: measuring wireless networks and smartphone users in the field. SIGMETRICS Perform. Eval. Rev. (2011).
    [11]
    Tang, Y., Gao, Q., and Qin, F. Leaksurvivor: towards safely tolerating memory leaks for garbage-collected languages. In USENIX ATC'08.
    [12]
    Wang, Z., Lin, F. X., Zhong, L., and Chishtie, M. How far can client-only solutions go for mobile browser speed? In WWW '12.
    [13]
    Yan, T., Chu, D., Ganesan, D., Kansal, A., and Liu, J. Fast app launching for mobile devices using predictive user context. In MobiSys '12.

    Cited By

    View all
    • (2023)Detecting Potential User-data Save & Export Losses due to Android App Termination2023 IEEE/ACM International Conference on Automation of Software Test (AST)10.1109/AST58925.2023.00019(152-162)Online publication date: May-2023
    • (2022)Towards a Catalog of Energy Patterns in Deep Learning DevelopmentProceedings of the 26th International Conference on Evaluation and Assessment in Software Engineering10.1145/3530019.3530035(150-159)Online publication date: 13-Jun-2022
    • (2022)A Survey of Performance Optimization for Mobile ApplicationsIEEE Transactions on Software Engineering10.1109/TSE.2021.307119348:8(2879-2904)Online publication date: 1-Aug-2022
    • Show More Cited By

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    HotPower '13: Proceedings of the Workshop on Power-Aware Computing and Systems
    November 2013
    66 pages
    ISBN:9781450324588
    DOI:10.1145/2525526
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Sponsors

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 03 November 2013

    Permissions

    Request permissions for this article.

    Check for updates

    Qualifiers

    • Research-article

    Funding Sources

    Conference

    SOSP '13
    Sponsor:

    Acceptance Rates

    HotPower '13 Paper Acceptance Rate 13 of 38 submissions, 34%;
    Overall Acceptance Rate 20 of 50 submissions, 40%

    Upcoming Conference

    SOSP '24

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)17
    • Downloads (Last 6 weeks)4
    Reflects downloads up to 10 Aug 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2023)Detecting Potential User-data Save & Export Losses due to Android App Termination2023 IEEE/ACM International Conference on Automation of Software Test (AST)10.1109/AST58925.2023.00019(152-162)Online publication date: May-2023
    • (2022)Towards a Catalog of Energy Patterns in Deep Learning DevelopmentProceedings of the 26th International Conference on Evaluation and Assessment in Software Engineering10.1145/3530019.3530035(150-159)Online publication date: 13-Jun-2022
    • (2022)A Survey of Performance Optimization for Mobile ApplicationsIEEE Transactions on Software Engineering10.1109/TSE.2021.307119348:8(2879-2904)Online publication date: 1-Aug-2022
    • (2019)Power Consumption Analysis, Measurement, Management, and Issues: A State-of-the-Art Review of Smartphone Battery and Energy UsageIEEE Access10.1109/ACCESS.2019.29586847(182113-182172)Online publication date: 2019
    • (2019)A formal approach to automatically analyse extra‐functional properties in mobile applicationsSoftware Testing, Verification and Reliability10.1002/stvr.169929:4-5Online publication date: 14-Jun-2019
    • (2017)Whom to Blame? Automatic Diagnosis of Performance Bottlenecks on SmartphonesIEEE Transactions on Mobile Computing10.1109/TMC.2016.260425816:6(1773-1785)Online publication date: 1-Jun-2017
    • (2016)Automated test generation for detection of leaks in Android applicationsProceedings of the 11th International Workshop on Automation of Software Test10.1145/2896921.2896932(64-70)Online publication date: 14-May-2016
    • (2015)Runtime Verification of Expected Energy Consumption in SmartphonesProceedings of the 22nd International Symposium on Model Checking Software - Volume 923210.1007/978-3-319-23404-5_10(132-149)Online publication date: 24-Aug-2015
    • (2014)Balanced memory management for smartphones based on adaptive background app managementThe 18th IEEE International Symposium on Consumer Electronics (ISCE 2014)10.1109/ISCE.2014.6884413(1-2)Online publication date: Jun-2014
    • (undefined)Assuring Autonomy of UAVs in Mission-critical Scenarios by Performability Modeling and AnalysisACM Transactions on Cyber-Physical Systems10.1145/3624572

    View Options

    Get Access

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media