Title
A lightweight hybrid hardware/software approach for object-relative memory profiling
Abstract
Memory profiling is the process of collecting memory address traces during the execution of a program, then analyzing and characterizing the memory behavior of the program offline. With the trend that there will be more and more cores integrated in a processor chip, the "Memory Wall" problem will become more serious in the chip multiprocessor (CMP) system. Thus accurate and effective memory profiling is becoming one of the keys to identify the source of memory system bottlenecks. A large body of work has been contributed to memory profiling, however, most adopts instrumentation, simulator which suffers heavy overhead, or hardware performance counter which is lack of detail trace information. Furthermore, correlating the raw memory address traces with object-relative information allows us to separate regular pattern for certain object from the irregular mixed, thus helps the optimization. In this paper, we propose a lightweight hybrid hardware/software approach for object-relative memory profiling. We monitor physical memory addresses through hardware snooping with negligible overhead; meanwhile we dump Linux kernel page tables of processes, as well as object-relative memory allocation information. Our approach supports not only to collect applications' full memory traces with detail object relative information, but also to identify hardware-generated memory accesses such as page memory walks due to TLB miss at object level. The experimental results on real system show that our approach is highly accurate (the largest error is 2.04%) and low overhead (the average overhead is 1.60%). Furthermore, we profile two multi-thread applications in detail, and successfully identity hot TLB-miss objects. With object-targeted optimization, we can improve applications' performance by nearly 6.86%.
Year
DOI
Venue
2012
10.1109/ISPASS.2012.6189205
ISPASS
Keywords
Field
DocType
full memory trace,object-relative memory allocation information,object-relative memory profiling,lightweight hybrid hardware,memory address trace,effective memory profiling,memory behavior,software approach,page memory,hardware-generated memory,memory system bottleneck,memory profiling,hybrid,optimization,collective memory,hardware,object,memory allocation,object oriented programming,chip,linux,multi threading,kernel
Registered memory,Interleaved memory,Extended memory,Physical address,Computer science,Parallel computing,Real-time computing,Memory management,Memory map,Flat memory model,Memory segmentation
Conference
Citations 
PageRank 
References 
4
0.42
29
Authors
6
Name
Order
Citations
PageRank
Licheng Chen11039.74
Zehan Cui219710.00
Yungang Bao336131.11
Ming-yu Chen490279.29
Yongbing Huang5766.24
Guangming Tan643648.90