The economics of garbage collection

17
The Economics of Garbage Collection Jeremy Singer, Richard Jones, Gavin Brown, Mikel Luján

description

Presentation of the article called "The Economics of Garbage Collection". Authors of it: J. Singer, R. Jones, G. Brown and M. Lujan

Transcript of The economics of garbage collection

Page 1: The economics of garbage collection

The Economics of Garbage CollectionJeremy Singer, Richard Jones, Gavin Brown, Mikel Luján

Page 2: The economics of garbage collection

Motivation

Page 3: The economics of garbage collection

The main goals

• Determine allocation curve

• Introduce allocation elasticity

• Make use of introduced elasticity

Page 4: The economics of garbage collection

Microeconomics demand curve

Page 5: The economics of garbage collection

Garbage collection analogy

Page 6: The economics of garbage collection

Empirical Allocation Curves

• Empirical data from real-world Java application

• Different algorithms from MMTk toolkit run on JikesRVM

• Java benchmarks from DaCapo suite

• Fixed size heap 35-500 MB

Page 7: The economics of garbage collection

Full-Heap Collection

• Mark-Sweep GC• Allocation curves obey the law of allocation

Page 8: The economics of garbage collection

Generational Collection

• Generational Mark-Sweep GC• Nursery space – frequently collected• Mature space – long-lived objects• Added weight of 0.1 to Nursery GC

Page 9: The economics of garbage collection

Shifting the Allocation Curve

• Added “tax” – additional words to object header• Allocation curve shifted upwards

Page 10: The economics of garbage collection

Elasticity

Page 11: The economics of garbage collection

Controlling Heap Growth using Elasticity

• Elasticity to improve GC performance

• Controlling the expansion rate heap

• Default heuristics for controlling heap size

• Sensitivity in default heuristics

• Alternative heuristics

Page 12: The economics of garbage collection

Alternative Heuristic for Heap Growth Management

• Based on allocation elasticity

• target elasticity, Eo small E, slow heap growth rateo large E, rapid heap growth rate

Page 13: The economics of garbage collection

Execution Time Benchmarks

Page 14: The economics of garbage collection

Final Heap Sizes

Page 15: The economics of garbage collection

Related Work• Stefanovic et al. used statistical techniques

• Baker offered radioactive decay model

• Garbage collection and transactional memory

Page 16: The economics of garbage collection

Conclusion• Microeconomics and memory management

• Allocation curve

• Allocation elasticity

Page 17: The economics of garbage collection