{"title":"为什么应用错误容易耗尽电池?一项关于智能手机应用程序内存泄漏的研究","authors":"Mingyuan Xia, Wenbo He, Xue Liu, Jie Liu","doi":"10.1145/2525526.2525846","DOIUrl":null,"url":null,"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.","PeriodicalId":112226,"journal":{"name":"Power-Aware Computer Systems","volume":"10 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2013-11-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"14","resultStr":"{\"title\":\"Why application errors drain battery easily?: a study of memory leaks in smartphone apps\",\"authors\":\"Mingyuan Xia, Wenbo He, Xue Liu, Jie Liu\",\"doi\":\"10.1145/2525526.2525846\",\"DOIUrl\":null,\"url\":null,\"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.\",\"PeriodicalId\":112226,\"journal\":{\"name\":\"Power-Aware Computer Systems\",\"volume\":\"10 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2013-11-03\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"14\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Power-Aware Computer Systems\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/2525526.2525846\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Power-Aware Computer Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2525526.2525846","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Why application errors drain battery easily?: a study of memory leaks in smartphone apps
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.