Skip to main navigation Skip to search Skip to main content

Automatic heap sizing: Taking real memory into account

  • Ting Yang
  • , Matthew Hertz
  • , Emery D. Berger
  • , Scott F. Kaplan
  • , J. Eliot
  • , B. Moss
  • University of Massachusetts
  • Amherst College

Research output: Contribution to conference › Paper › peer-review

52 Scopus citations

Abstract

Heap size has a huge impact on the performance of garbage collected applications. A heap that barely meets the application's needs causes excessive GC overhead, while a heap that exceeds physical memory induces paging. Choosing the best heap size a priori is impossible in multiprogrammed environments, where physical memory allocations to processes change constantly. We present an automatic heap-sizing algorithm applicable to different garbage collectors with only modest changes. It relies on an analytical model and on detailed information from the virtual memory manager. The model characterizes the relation between collection algorithm, heap size, and footprint. The virtual memory manager tracks recent reference behavior, reporting the current footprint and allocation to the collector. The collector uses those values as inputs to its model to compute a heap size that maximizes throughput while minimizing paging. We show that our adaptive heap sizing algorithm can substantially reduce running time over fixed-sized heaps.

Original languageEnglish
Pages61-72
Number of pages12
StatePublished - 2004
Event2004 International Symposium on Memory Management, ISMM 2004 - Vancouver, BC, Canada
Duration: Oct 24 2004 → Oct 25 2004

Conference

Conference2004 International Symposium on Memory Management, ISMM 2004
Country/TerritoryCanada
CityVancouver, BC
Period10/24/04 → 10/25/04

Keywords

  • Garbage collection
  • Paging
  • Virtual memory

Fingerprint

Dive into the research topics of 'Automatic heap sizing: Taking real memory into account'. Together they form a unique fingerprint.

Cite this