Skip to main content
QUICK REVIEW

[Paper Review] Effectiveness of Garbage Collection in MIT/GNU Scheme

Amey Karkare, Amitabha Sanyal|ArXiv.org|Nov 20, 2006
Parallel Computing and Optimization TechniquesComputer Science8 references7 citations
TL;DR

This paper evaluates garbage collection effectiveness in MIT/GNU Scheme by measuring drag time—the duration dead objects remain reachable in memory after their last use. Using high-frequency garbage collection to isolate the reachability delay, the study reveals up to 26% of dead objects remain in memory, with drag times reaching 37% of total execution time, indicating memory savings potential from 9% to 65% through earlier unreachable marking.

ABSTRACT

Scheme uses garbage collection for heap memory management. Ideally, garbage collectors should be able to reclaim all dead objects, i.e. objects that will not be used in future. However, garbage collectors collect only those dead objects that are not reachable from any program variable. Dead objects that are reachable from program variables are not reclaimed. In this paper we describe our experiments to measure the effectiveness of garbage collection in MIT/GNU Scheme. We compute the drag time of objects, i.e. the time for which an object remains in heap memory after its last use. The number of dead objects and the drag time together indicate opportunities for improving garbage collection. Our experiments reveal that up to 26% of dead objects remain in memory. The average drag time is up to 37% of execution time. Overall, we observe memory saving potential ranging from 9% to 65%.

Motivation & Objective

  • To measure the effectiveness of garbage collection in MIT/GNU Scheme by analyzing the drag time of dead objects.
  • To identify the proportion of dead objects that remain reachable due to program structure, despite being unused.
  • To quantify the potential memory savings from reducing drag time through earlier unreachable marking.
  • To evaluate whether automatic techniques can reduce reachable dead objects in functional languages like Scheme.

Proposed method

  • Forced high-frequency garbage collection to minimize δ_gc, isolating δ_rch as the dominant drag time component.
  • Instrumented benchmark programs to log object creation, last use, and reachability status.
  • Measured drag time as the interval between last use and when an object becomes unreachable.
  • Computed space-time product (area under reachable/live object curves) to estimate memory savings potential.
  • Used log-scale histograms to visualize distribution of dead objects across runtime percentages.
  • Analyzed six benchmarks: silex, lalr, eopl, prolog, sudoku, and cipher to generalize findings.

Experimental results

Research questions

  • RQ1What percentage of dead objects in MIT/GNU Scheme remain reachable due to program structure?
  • RQ2How long do dead objects remain in memory on average, as a fraction of total execution time?
  • RQ3What is the upper bound on potential memory savings from eliminating reachable dead objects?
  • RQ4How does the drag time distribution vary across different Scheme programs?

Key findings

  • Up to 26% of dead objects remain in memory due to persistent reachability from program variables.
  • Maximum drag time reaches 96.99% of total runtime in the silex benchmark, indicating near-entire execution duration of object retention.
  • Average drag time is 28.36% of runtime for silex, 37.49% for lalr, and 4.95% for eopl, showing significant variation across programs.
  • Memory savings potential ranges from 9.18% (sudoku) to 65.48% (silex), based on space-time product of reachable vs. live objects.
  • Most dead objects have drag times in the 0–50% range of runtime, but silex, eopl, and sudoku have a notable fraction with drag times above 95%.
  • The eopl benchmark shows 99.59% of dead objects with drag times near 100% of runtime, indicating high inefficiency in object lifecycle management.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.