Reducing garbage collector cache misses

被引:2
作者
Boehm, HJ [1 ]
机构
[1] Hewlett Packard Labs, Palo Alto, CA 94304 USA
关键词
D O I
10.1145/362426.362438
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Cache misses are currently a major factor in the cost of garbage collection, and we expect them to dominate in the future. Traditional garbage collection algorithms exhibit relatively little temporal locality; each live object in the heap is likely to be touched exactly once during each garbage collection. We measure two techniques for dealing with this issue: prefetch-on-grey, and lazy sweeping. The first of these is new in this context. Lazy sweeping has been in common use for a decade. It was introduced as a mechanism for reducing paging and pause times; we argue that it is also crucial for eliminating cache misses during the sweep phase. Our measurements are obtained in the context of a nonmoving garbage collector. Fully copying garbage collection inherently requires more traffic through the cache, and thus probably also stands to benefit substantially from something like the prefetch-on-grey technique. Generational garbage collection may reduce the benefit of these techniques for some applications, but experiments with a non-moving generational collector suggest that they remain quite useful.
引用
收藏
页码:59 / 64
页数:6
相关论文
共 11 条
  • [1] BAKER HG, 1992, SIGPLAN NOTICES MAR, V27
  • [2] BOEHM HJ, 1991, SIGPLAN NOTICES, V26, P157
  • [3] CALLAHAN D, 1991, P 4 INT C ARCH SUPP, P40
  • [4] CHIKEUNG L, 1996, P 7 INT C ARCH SUPP, V31, P222
  • [5] Chilimbi T. M., 1998, P INT S MEM MAN, P37
  • [6] Chung Y. C., 2000, Conference Record of POPL'00: 27th ACM SIGPLAN-SIGACT. Symposium on Principles of Programming Languages. Papers Presented at the Symposium, P378, DOI 10.1145/325694.325744
  • [7] DIKSTRA EW, 1978, COMMUN ACM, V21, P965
  • [8] A SEMI-INCREMENTAL GARBAGE COLLECTION ALGORITHM
    HUGHES, RJM
    [J]. SOFTWARE-PRACTICE & EXPERIENCE, 1982, 12 (11) : 1081 - 1082
  • [9] JONES R, 1996, GARBAGE COLECTION AL
  • [10] WILSON PR, 1991, SIGPLAN NOTICES, V26, P177, DOI 10.1145/113446.113461