skip to main content
10.1145/1375634.1375641acmconferencesArticle/Chapter ViewAbstractPublication PagesismmConference Proceedingsconference-collections
research-article

Supporting superpage allocation without additional hardware support

Published:07 June 2008Publication History

ABSTRACT

Today, many modern processors support more than one page size. The larger pages, called superpages, have been identified as one means of reducing the time spent servicing translation lookaside buffer (TLB) misses in the early 1990s by increasing TLB reach. Widespread usage of superpages has been limited by the requirement that superpages consist of physically contiguous and naturally-aligned small pages. This makes external fragmentation a serious problem for an operating system, one that is almost non-existent when processes use only one page size. Hardware solutions to mitigate this limitation such as sub-blocking, shadow page-tables and a variety of hybrid solutions have not seen wide-spread adoption. This has curtailed automatic superpage support as it is known that superpage availability will decrease during the system's lifetime as external fragmentation grows.

This paper presents a placement policy for an operating system's physical page allocator to mitigate external fragmentation problems by grouping pages based on the system's ability to relocate the data. Secondly, the necessary changes to the page reclamation algorithm for it to be contiguity-aware are described while minimising impact to the reclamation algorithms' normal decisions. The performance impact on different machine types is illustrated and it is shown that the superpage allocation success rate is improved. These mechanisms are complementary to any of the hardware solutions proposed in the past.

References

  1. David A. Barrett and Benjamin G. Zorn. Using lifetime predictors to improve memory allocation performance. In PLDI, pages 187--196, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Hans-Juergen Boehm and Mark Weiser. Garbage collection in an uncooperative environment. Software practise and Experience, 18(9):807--820, September 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Delvin C. Defoe, Sharath R. Cholleti, and Ron K. Cytron. Upper bound for defragmenting buddy heaps. ACM SIGPLAN Notices, 40(7):222--229, July 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. A. Demmers, M. Weiser, B. Hayes, H. Boehm, D. Bobrow, and S. Shenker. Combining generational and conservative garbage collection: Framework and implementations. In Conference record of the 17th ACM Symposium on Principles of Programming Languages (POPL), pages 261--269, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Theodore Johnson and Dennis Shasha. 2Q: A low overhead high performance buffer management replacement algorithm. In International Conference On Very Large Data Bases (VLDB '94), pages 439--450, San Francisco, Ca., USA, September 1994. Morgan Kaufmann Publishers, Inc. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. David G. Korn and Kiem-Phong Bo. In search of a better malloc. In Proceedings of the Summer 1985 USENIX Conference, pages 489--506, 1985.Google ScholarGoogle Scholar
  7. Mel Gorman. Understanding the Linux Virtual Memory Manager. Prentice Hall PTR, Upper Saddle River, NJ, USA, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Mel Gorman and Andy Whitcroft. The what, the why and the where to of anti-fragmentation. In Ottawa Linux Symposium 2006 Proceedings Volume 1, pages 361--377, 2006.Google ScholarGoogle Scholar
  9. Marshall Kirk McKusick. The design and implementation of the 4.4BSD operating system. Addison-Wesley, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Juan E. Navarro. Transparent operating system support for superpages. PhD thesis, Rice University, Heuston, Texas, 2004. Chairman-Peter Druschel. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. James L. Peterson and Theodore A. Norman. Buddy systems. Communications of the ACM, 20(6):421--431, 1977. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Brian Randell. A note on storage fragmentation and program segmentation. Commun. ACM, 12(7):365--369, 1969. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Mark R. Swanson, Leigh Stoller, and John B. Carter. Increasing TLB reach using superpages backed by shadow memory. In ISCA, pages 204--213, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Madhusudhan Talluri and Mark D. Hill. Surpassing the TLB performance of superpages with less operating system support. In ASPLOS, pages 171--182, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Supporting superpage allocation without additional hardware support

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
    ISMM '08: Proceedings of the 7th international symposium on Memory management
    June 2008
    170 pages
    ISBN:9781605581347
    DOI:10.1145/1375634

    Copyright © 2008 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: 7 June 2008

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • research-article

    Acceptance Rates

    Overall Acceptance Rate72of156submissions,46%

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader