Sun 14 Jun 2015 16:25 - 16:50 at C123 - Optimizing Garbage Collection Chair(s): Richard Jones

Each full garbage collection in a program with millions of objects can pause the program for multiple seconds. Much of this work is typically repeated, as the collector re-traces parts of the object graph that have not changed since the last collection. Clustered Collection reduces full collection pause times by eliminating much of this repeated work.

Clustered Collection identifies clusters: regions of the object graph that are reachable from a single “head” object, so that reachability of the head implies reachability of the whole cluster. As long as it is not written, a cluster need not be re-traced by successive full collections. The main design challenge is coping with program writes to clusters while ensuring safe, complete, and fast collections. In some cases program writes require clusters to be dissolved, but in most cases Clustered Collection can handle writes without having to re-trace the affected cluster. Clustered Collection chooses clusters likely to suffer few writes and to yield high savings from re-trace avoidance.

Clustered Collection is implemented as modifications to the Racket collector. Measurements of the code and data from the Hacker News web site (which suffers from significant garbage collection pauses) and a Twitter-like application show that Clustered Collection decreases full collection pause times by a factor of three and six respectively. This improvement is possible because both applications have gigabytes of live data, modify only a small fraction of it, and usually write in ways that do not result in cluster dissolution. Identifying clusters takes more time than a full collection, but happens much less frequently than full collection.

Sun 14 Jun
Times are displayed in time zone: (GMT-07:00) Tijuana, Baja California change

16:00 - 17:15: Research Papers - Optimizing Garbage Collection at C123
Chair(s): Richard JonesUniversity of Kent
ismm-2015-papers16:00 - 16:25
Jonathan ShidalWashington University, Ari J. SpiloWashington University, Paul T. ScheidWashington University, Ron K. CytronWashington University, Krishna M. KaviUniversity of North Texas
Link to publication
ismm-2015-papers16:25 - 16:50
Link to publication
ismm-2015-papers16:50 - 17:15
Callum CameronUniversity of Glasgow, Jeremy SingerUniversity of Glasgow, David VengerovOracle
Link to publication