Projects per year
Abstract
Generational garbage collectors are among the most popular garbage collectors used in programming language runtime systems. Their performance is known to depend heavily on choosing the appropriate size of the area where new objects are allocated (the nursery). In imperative languages, it is usual to make the nursery as large as possible, within the limits imposed by the heap size. Functional languages, however, have quite different memory behaviour. In this paper, we study the effect that the nursery size has on the performance of lazy functional programs, through the interplay between cache locality and the frequency of collections. We demonstrate that, in contrast with imperative programs, having large nurseries is not always the best solution. Based on these results, we propose two novel algorithms for dynamic nursery resizing that aim to achieve a compromise between good cache locality and the frequency of garbage collections. We present an implementation of these algorithms in the state-of-the-art GHC compiler for the functional language Haskell, and evaluate them using an extensive benchmark suite. In the best case, we demonstrate a reduction in total execution times of up to 88.5%, or an 8.7 overall speedup, compared to using the production GHC garbage collector. On average, our technique gives an improvement of 9.3% in overall performance across a standard suite of 63 benchmarks for the production GHC compiler.
Original language | English |
---|---|
Title of host publication | CC 2016 Proceedings of the 25th International Conference on Compiler Construction |
Place of Publication | New York |
Publisher | ACM |
Pages | 56-66 |
Number of pages | 10 |
ISBN (Print) | 9781450342414 |
DOIs | |
Publication status | Published - 17 Mar 2016 |
Event | 25th International Conference on Compiler Construction - Barcelona, Barcelona, Spain Duration: 17 Mar 2016 → 18 Mar 2016 http://cc2016.eew.technion.ac.il/ |
Conference
Conference | 25th International Conference on Compiler Construction |
---|---|
Country/Territory | Spain |
City | Barcelona |
Period | 17/03/16 → 18/03/16 |
Internet address |
Keywords
- Generational garbage collection
- Cache locality
- Allocation area
- Functional programming
Fingerprint
Dive into the research topics of 'Kindergarten Cop: dynamic nursery resizing for GHC'. Together they form a unique fingerprint.Projects
- 1 Finished
-
H2020 Collaboration REPHRASE: H2020 Collaboration 2014 - RePhrase
Hammond, K. (PI)
1/04/15 → 31/03/18
Project: Standard
Datasets
-
Kindergarten Cop: dynamic nursery resizing for GHC
Janjic, V. (Creator) & Hammond, K. (Contributor), Zenodo, 4 Nov 2016
Dataset