skip to main content
10.1145/1966445.1966460acmconferencesArticle/Chapter ViewAbstractPublication PageseurosysConference Proceedingsconference-collections
research-article

Fine-grained power modeling for smartphones using system call tracing

Published: 10 April 2011 Publication History

Abstract

Accurate, fine-grained online energy estimation and accounting of mobile devices such as smartphones is of critical importance to understanding and debugging the energy consumption of mobile applications. We observe that state-of-the-art, utilization-based power modeling correlates the (actual) utilization of a hardware component with its power state, and hence is insufficient in capturing several power behavior not directly related to the component utilization in modern smartphones. Such behavior arise due to various low level power optimizations programmed in the device drivers. We propose a new, system-call-based power modeling approach which gracefully encompasses both utilization-based and non-utilization-based power behavior. We present the detailed design of such a power modeling scheme and its implementation on Android and Windows Mobile. Our experimental results using a diverse set of applications confirm that the new model significantly improves the fine-grained as well as whole-application energy consumption accuracy. We further demonstrate fine-grained energy accounting enabled by such a fined-grained power model, via amanually implemented eprof, the energy counterpart of the classic gprof tool, for profiling application energy drain.

References

[1]
Android phones steal market share. URL http://bmighty.informationweek.com/mobile/showArticle.jhtml?articleID=224201881.
[2]
Celog event tracking. URL http://msdn.microsoft. com/en-us/library/aa462467.aspx.
[3]
Cyanogenmod: Android community rom based on froyo. URL http://www.cyanogenmod.com/.
[4]
Event tracing for windows (etw). URL http://msdn. microsoft.com/en-us/library/ms751538.aspx.
[5]
Microsoft platform builder. URL http://msdn.microsoft.com/en-us/library/ms938344.aspx.
[6]
Monsoon power monitor. URL http://www.msoon. com/LabEquipment/PowerMonitor/.
[7]
Strace. URL http://linux.die.net/man/1/ strace.
[8]
System tap. URL http://sourceware.org/ systemtap/.
[9]
Windows embedded ce shared source. URL http://msdn.microsoft.com/en-us/windowsembedded/ce/dd567722.aspx.
[10]
Niranjan Balasubramanian, Aruna Balasubramanian, and Arun Venkataramani. Energy consumption in mobile phones: a measurement study and implications for network applications. In Proc of IMC, 2009.
[11]
Paul Barham, Austin Donnelly, Rebecca Isaacs, and Richard Mortier. Using magpie for request extraction and workload modelling. In Proc. of OSDI, 2004.
[12]
F. Bellosa. The benefits of event: driven energy accounting in power-sensitive systems. In Proc. ACM SIGOPS European workshop, 2000.
[13]
W.L. Bircher and L.K. John. Complete system power estimation: A trickle-down approach based on performance events. In Proc. of ISPASS, 2007.
[14]
Abhijit Bose, Xin Hu, Kang G. Shin, and Taejoon Park. Behavioral detection of malware on mobile handsets. In Proc. of MobiSys, 2008.
[15]
Vitaly Chipounov and George Candea. Reverse Engineering of Binary Device Drivers with RevNIC. In Proc. of EuroSys, 2010.
[16]
X. Fan, W.D. Weber, and L.A. Barroso. Power provisioning for a warehouse-sized computer. In Proc. of ISCA, 2007.
[17]
Jason Flinn and M. Satyanarayanan. Energy-aware adaptation for mobile applications. In Proc. of SOSP, 1999.
[18]
Jason Flinn and M. Satyanarayanan. Powerscope: A tool for profiling the energy usage of mobile applications. In Proc. of WMCSA, 1999.
[19]
S. L. Graham, P. B. Kessler, and M. K. McKusick. gprof: A call graph execution profiler. In Proc. of ACM PLDI, 1982.
[20]
Zhenyu Guo, Xi Wang, Jian Tang, Xuezheng Liu, Zhilei Xu, Ming Wu, M. Frans Kaashoek, and Zheng Zhang. R2: An application-level kernel for record and replay. In OSDI, pages 193--208, 2008.
[21]
A. Kansal, F. Zhao, J. Liu, N. Kothari, and A.A. Bhattacharya. Virtual machine power metering and provisioning. In Proc. of SOCC, 2010.
[22]
A. Mahesri and V. Vardhan. Power consumption breakdown on a modern laptop. Proc. of PACS, 2005.
[23]
F. Rawson. MEMPOWER: A simple memory power analysis tool set. IBM Austin Research Laboratory, 2004.
[24]
Victor Shnayder, Mark Hempstead, Bor rong Chen, Geoff Werner Allen, and Matt Welsh. Simulating the power consumption of large-scale sensor network applications. In Proc. of Sensys, 2004.
[25]
A. Shye, B. Scholbrock, and G. Memik. Into the wild: studying real user activity patterns to guide power optimizations for mobile architectures. In Proc. of MICRO, 2009.
[26]
David C. Snowdon, Etienne Le Sueur, Stefan M. Petters, and Gernot Heiser. Koala: a platform for os-level power management. In Proc. of EuroSys, 2009.
[27]
P. Stanley-Marbell and M. Hsiao. Fast, flexible, cycle-accurate energy estimation. In Proc. of ISLPED, 2001.
[28]
V. Tiwari, S. Malik, A. Wolfe, and M. Tien-Chien Lee. Instruction level power analysis and optimization of software. The Journal of VLSI Signal Processing, 13(2), 1996.
[29]
C Yuan, N Lao, J Wen, J Li, Z Zhang, Y Wang, and W Ma. Automated known problem diagnosis with event traces. In EuroSys, 2006.
[30]
J. Zedlewski, S. Sobti, N. Garg, F. Zheng, A. Krishnamurthy, and R.Wang. Modeling hard-disk power consumption. In Proc. of FAST. USENIX Association, 2003.
[31]
Heng Zeng, Carla S. Ellis, Alvin R. Lebeck, and Amin Vahdat. Ecosystem: Managing energy as a first class operating system resource. In Proc. of ASPLOS, 2002.
[32]
L. Zhang, B. Tiwana, Z. Qian, Z. Wang, R.P. Dick, Z.M. Mao, and L. Yang. Accurate Online Power Estimation and Automatic Battery Behavior Based Power Model Generation for Smartphones. In Proc. of CODES+ISSS, 2010.

Cited By

View all

Recommendations

Reviews

L F. Pau

In this interesting paper, the authors use their knowledge of wireless smartphone design to provide a realistic method for power consumption modeling and accounting. Most prior published work took an input/output hardware utilization-to-power modeling approach that related the utilization of smartphone components with their power usage. It has long been known in industry that such an approach was incorrect, for a number of key reasons that represent new research challenges. First, the radio front end, operating systems, drivers, and main protocols in smartphones all have several states, not just on/off. This implies power use, even when the component is not in use during a given session. Next, several key components, operating system states, and drivers have their own power optimizations. Finally, the diversity and complexity of services executed on smartphones imply that the binary hardware activation is not enough to represent the user- and operator-driven service-specific state transitions. The analysis in this paper is consistent with equivalent evolutions in the power consumption analysis of wireless network infrastructure, which also has to include the service mix, as well as switching between technologies, due to subscriber-chosen tariff packages. After two introductory sections and a discussion in section 3 of prior work on outdated utilization-based modeling, section 4 summarizes some of the challenges mentioned above. The narrower challenges addressed include tail power states of some components, systems calls without on/off power calls, and session-based activation of some components (global positioning system (GPS) processing, for example). Section 5 summarizes the proposed approach, which involves finite state modeling triggered by session-dependent triggers, supplemented by the logging of context-switching events in the operating system kernel. A session's system-based power consumption derives from the sequence of state transitions. The approach is incrementally extended to more and more components in the smartphone, and benchmark test suites have been designed. Section 6 describes an implementation of system call tracing on Windows Mobile 6.5 (Windows CE 5.2 kernel) and Android 2.2 (Linux Kernel 2.6.34) in the context of three smartphone designs in total. Section 7 summarizes the experimental protocols and evaluation results, with an emphasis on the comparison of the accuracies of the input/output and of the session-driven state transition models. Finally, section 8 gives a proof-of-concept demonstration of the utilization of the state transition approach in a manually implemented "eprof"? power optimization tool, similar to the classical "gprof"? tool [1]. The smartphone industry has long been making progress on smartphone systems and service-level analysis and optimization, which are crucial for end-user device usage time without power reloads. This paper is a significant addition to the literature addressing open problems in this area. Online Computing Reviews Service

Access critical reviews of Computing literature here

Become a reviewer for Computing Reviews.

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
EuroSys '11: Proceedings of the sixth conference on Computer systems
April 2011
370 pages
ISBN:9781450306348
DOI:10.1145/1966445
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: 10 April 2011

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. energy
  2. mobile
  3. smartphone

Qualifiers

  • Research-article

Conference

EuroSys '11
Sponsor:
EuroSys '11: Sixth EuroSys Conference 2011
April 10 - 13, 2011
Salzburg, Austria

Acceptance Rates

EuroSys '11 Paper Acceptance Rate 24 of 161 submissions, 15%;
Overall Acceptance Rate 241 of 1,308 submissions, 18%

Upcoming Conference

EuroSys '25
Twentieth European Conference on Computer Systems
March 30 - April 3, 2025
Rotterdam , Netherlands

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)74
  • Downloads (Last 6 weeks)15
Reflects downloads up to 14 Sep 2024

Other Metrics

Citations

Cited By

View all

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