skip to main content
column

Measuring energy consumption for short code paths using RAPL

Published:04 January 2012Publication History
Skip Abstract Section

Abstract

Measuring the energy consumption of software components is a major building block for generating models that allow for energy-aware scheduling, accounting and budgeting. Current measurement techniques focus on coarse-grained measurements of application or system events. However, fine grain adjustments in particular in the operating-system kernel and in application-level servers require power profiles at the level of a single software function. Until recently, this appeared to be impossible due to the lacking fine grain resolution and high costs of measurement equipment. In this paper we report on our experience in using the Running Average Power Limit (RAPL) energy sensors available in recent Intel CPUs for measuring energy consumption of short code paths. We investigate the granularity at which RAPL measurements can be performed and discuss practical obstacles that occur when performing these measurements on complex modern CPUs. Furthermore, we demonstrate how to use the RAPL infrastructure to characterize the energy costs for decoding video slices.

References

  1. Advanced Micro Devices. BIOS and Kernel Developer's Guide (BKDG) for AMD Family 15h Models 00h-0Fh Processors. 2012.Google ScholarGoogle Scholar
  2. A. Carroll and G. Heiser. An analysis of power consumption in a smartphone. In Proceedings of the 2010 USENIX Annual Technical Conference, pages 1--14, Boston, MA, USA, Jun 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. FFmpeg project. http://www.ffmpeg.org.Google ScholarGoogle Scholar
  4. J. Flinn and M. Satyanarayanan. Managing battery lifetime with energy-aware adaptation. ACM Trans. Comput. Syst., 22(2):137--179, May 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. J. Haartsen, M. Naghshineh, J. Inouye, O. J. Joeressen, and W. Allen. Bluetooth: vision, goals, and architecture. SIGMOBILE Mob. Comput. Commun. Rev., 2(4):38--45, Oct. 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Intel Corp. Intel Xeon processor. http://www.intel.com/xeon, 2012.Google ScholarGoogle Scholar
  7. Intel Corp. Intel R 64 and IA-32 Architectures Software Developer Manual. 2012.Google ScholarGoogle Scholar
  8. ISO/IEC 14496-10. Coding of audio-visual objects, part 10: Advanced video coding.Google ScholarGoogle Scholar
  9. Marvel Studios. The Avengers -- Big Game (31s). http://trailers.apple.com/trailers/marvel/avengers/.Google ScholarGoogle Scholar
  10. J. C. McCullough, Y. Agarwal, J. Chandrashekar, S. Kuppuswamy, A. C. Snoeren, and R. K. Gupta. Evaluating the effectiveness of model-based power characterization. In Proceedings of the 2011 USENIX Annual Technical Conference, USENIX ATC'11, Berkeley, CA, USA, 2011. USENIX Association. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. A. Merkel and F. Bellosa. Balancing power consumption in multiprocessor systems. In Proceedings of the 1st ACM SIGOPS European Conference on Computer Systems 2006, pages 403--414, New York, NY, USA, 2006. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. A. Pathak, Y. C. Hu, and M. Zhang. Where is the energy spent inside my app?: Fine grained energy accounting on smartphones with eprof. In Proceedings of the 7th ACM Europ. Conference on Computer Systems, pages 29--42, New York, NY, USA, 2012. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. M. Pohlack, B. Döbel, and A. Lackorzynski. Towards runtime monitoring in real-time systems. In In Proceedings of the Eighth Real-Time Linux Workshop, Lanzhou, P.R. China, 2006.Google ScholarGoogle Scholar
  14. M. Roitzsch. Slice-balancing H.264 video encoding for improved scalability of multicore decoding. In Proceedings of the 7th International Conference on Embedded Sofware, Salzburg, Austria, EMSOFT'07. ACM, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. D. C. Snowdon, S. M. Petters, and G. Heiser. Accurate on-line prediction of processor and memory energy usage under voltage scaling. In Proceedings of the 7th International Conference on Embedded Software, pages 84--93, Salzburg, Austria, Oct 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. TU Dresden OS Group. L4/Fiasco.OC microkernel. http://www.tudos.org/fiasco, 2012.Google ScholarGoogle Scholar
  17. M. Weiser, B. Welch, A. Demers, and S. Shenker. Scheduling for reduced CPU energy. In Proceedings of the 1st USENIX conference on Operating Systems Design and Implementation, OSDI '94, Berkeley, CA, USA, 1994. USENIX Association. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. T. Wiegand, G. J. Sullivan, G. Bjntegaard, and A. Luthra. Overview of the H.264/AVC video coding standard. IEEE Trans. Circuits Syst. Video Techn., 13(7):560--576, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Measuring energy consumption for short code paths using RAPL

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in

      Full Access

      • Published in

        cover image ACM SIGMETRICS Performance Evaluation Review
        ACM SIGMETRICS Performance Evaluation Review  Volume 40, Issue 3
        December 2012
        108 pages
        ISSN:0163-5999
        DOI:10.1145/2425248
        Issue’s Table of Contents

        Copyright © 2012 Copyright is held by the owner/author(s)

        Permission to make digital or hard copies of part or all 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 third-party components of this work must be honored. For all other uses, contact the Owner/Author.

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 4 January 2012

        Check for updates

        Qualifiers

        • column

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader