Bell: Bit-encoding online memory leak detection

被引:55
作者
Bond, Michael D. [1 ]
McKinley, Kathryn S. [1 ]
机构
[1] Univ Texas Austin, Dept Comp Sci, Austin, TX 78712 USA
关键词
reliability; performance; experimentation; memory leaks; low-overhead monitoring; probabilistic approaches; managed languages;
D O I
10.1145/1168918.1168866
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Memory leaks compromise availability and security by crippling performance and crashing programs. Leaks are difficult to diagnose because they have no immediate symptoms. Online leak detection tools benefit from storing and reporting per-object sites (e. g., allocation sites) for potentially leaking objects. In programs with many small objects, per-object sites add high space overhead, limiting their use in production environments. This paper introduces Bit-Encoding Leak Location (Bell), a statistical approach that encodes per-object sites to a single bit per object. A bit loses information about a site, but given sufficient objects that use the site and a known, finite set of possible sites, Bell uses brute-force decoding to recover the site with high accuracy. We use this approach to encode object allocation and last-use sites in Sleigh, a new leak detection tool. Sleigh detects stale objects (objects unused for a long time) and uses Bell decoding to report their allocation and last-use sites. Our implementation steals four unused bits in the object header and thus incurs no per-object space overhead. Sleigh's instrumentation adds 29% execution time overhead, which adaptive profiling reduces to 11%. Sleigh's output is directly useful for finding and fixing leaks in SPEC JBB2000 and Eclipse, although sufficiently many objects must leak before Bell decoding can report sites with confidence. Bell is suitable for other leak detection approaches that store per-object sites, and for other problems amenable to statistical per-object metadata.
引用
收藏
页码:61 / 72
页数:12
相关论文
共 30 条
[1]  
[Anonymous], 1996, COMMUNICATION COMPLE
[2]  
BACON DF, 2003, S PRINC PROGR LANG P, P285, DOI DOI 10.1145/604131.604155
[3]  
*BEA, JROCKIT MISS CONTR
[4]  
*BEA, JROCKIT
[5]  
BERGER ED, 2002, C OBJ OR PROGR SYST, P1
[6]   Oil and water? High performance garbage collection in Java']Java with MMTk [J].
Blackburn, SM ;
Cheng, P ;
McKinley, KS .
ICSE 2004: 26TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2004, :137-146
[7]  
BLACKBURN SM, 2006, C OBJ OR PROGR SYST
[8]  
Blackburn Stephen M., 2004, P 4 INT S MEMORY MAN, P143, DOI DOI 10.1145/1029873.1029891
[9]  
CHILIMBI TM, 2004, INT C ARCH SUPP PROG, P156
[10]   UNBIASED BITS FROM SOURCES OF WEAK RANDOMNESS AND PROBABILISTIC COMMUNICATION COMPLEXITY [J].
CHOR, B ;
GOLDREICH, O .
SIAM JOURNAL ON COMPUTING, 1988, 17 (02) :230-261