skip to main content
10.1145/1281700.1281703acmconferencesArticle/Chapter ViewAbstractPublication PagesexpcsConference Proceedingsconference-collections
Article

Context switch overheads for Linux on ARM platforms

Published:13 June 2007Publication History

ABSTRACT

Context switching imposes a performance penalty on threads in a multitasking environment. The source of this penalty is both direct overhead due to running the context switch code and indirect overhead due to perturbation of caches. We calculate indirect overhead by measuring the running time of tasks that use context switching and subtracting the direct overhead. We also measure the indirect overhead impact on the running time of tasks due to processor interrupt servicing. Experiment results are presented for the Linux kernel running on an ARM processor based mobile device platform.

References

  1. D. Brash. The ARM Architecture Version 6. ARM White Paper, Jan 2002.Google ScholarGoogle Scholar
  2. M. Co and K. Skadron. The Effects of Context Switching on Branch Predictor Performance. In 2001 IEEE International Symposium on Performance Analysis of Systems and Software, pages 77--84, Nov 2001.Google ScholarGoogle Scholar
  3. L4 Performance, http://ertos.nicta.com.au/research/14/performance.pm1.Google ScholarGoogle Scholar
  4. L. W. McVoy and C. Staelin. Imbench: Portable Tools for Performance Analysis. In USENIX Annual Technical Conference, pages 279--294, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. J. C. Mogul and A. Borg. The Effect of Context Switches on Cache Performance. In Proceedings of the fourth International Conference on Architectural Support for Programming Languages and Operating Systems, pages 75--84, New York, NY, USA, 1991. ACM Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. J. K. Ousterhout. Why Aren't Operating Systems Getting Faster As Fast as Hardware? In USENIX Summer, pages 247--256, 1990.Google ScholarGoogle Scholar
  7. J. Stärner and L. Asplund. Measuring the Cache Interference Cost in Preemptive Real-Time Systems. In Proceedings of the 2004 ACM SIGPLAN/SIGBED Conference on Languages, Compilers, and Tools for Embedded Systems, pages 146--154, New York, NY, USA, 2004. ACM Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Texas Instruments OMAP Platform, http://focus.ti.com/omap/docs/omaphomepage.tsp.Google ScholarGoogle Scholar
  9. A. Wiggins, H. Tuch, V. Uhlig, and G. Heiser. Implementation of Fast Address-Space Switching and TLB Sharing on the Strong ARM Processor. In 8th Asia-Pacific Computer Systems Architecture Conference, Sep 2003.Google ScholarGoogle Scholar

Index Terms

  1. Context switch overheads for Linux on ARM platforms

    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
    • Published in

      cover image ACM Conferences
      ExpCS '07: Proceedings of the 2007 workshop on Experimental computer science
      June 2007
      218 pages
      ISBN:9781595937513
      DOI:10.1145/1281700

      Copyright © 2007 ACM

      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]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 13 June 2007

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader