Publication | Closed Access
LWPTool: A Lightweight Profiler to Guide Data Layout Optimization
13
Citations
37
References
2018
Year
Lightweight ProfilerEngineeringCompiler TechnologyComputer ArchitectureSoftware EngineeringDominant BottleneckSoftware AnalysisParallel ToolHardware SecurityMemory LocalityParallel ComputingCompilersData ManagementMemory ManagementMemory Access LatencyProfiling ToolComputer EngineeringUser ProfilingComputer SciencePerformance Analysis ToolProgram AnalysisParallel ProgrammingPerformance PortabilitySystem SoftwareData Modeling
Memory access latency continues to be a dominant bottleneck in a large class of applications on modern architectures. To optimize memory performance, it is important to utilize the locality in the memory hierarchy. Data layout optimization can significantly improve memory locality. However, pinpointing inefficient code and providing insightful guidance for data layout optimization is challenging. Existing tools typically leverage heavyweight memory instrumentations, which hinders the applicability of these tools for real long-running programs. To address this issue, we develop LWPTool, a profiler to pinpoint top candidates that benefit from data layout optimization. LWPTool makes three unique contributions. First, it adopts lightweight address sampling to collect and analyze memory traces. Second, LWPTool employs a set of novel methods to determine memory access patterns to guide data layout optimization. We also formally prove that our method has high accuracy even with sparse memory access samples. Third, LWPTool scales on multithreaded machines. LWPTool works on fully optimized, unmodified binary executables independently from their compiler and language, incurring around 6.2 percent runtime overhead. To evaluate LWPTool, we study ten sequential and parallel benchmarks. With the guidance of LWPTool, we are able to significantly improve all these benchmarks; the speedup is up to 1.39× on average.
| Year | Citations | |
|---|---|---|
Page 1
Page 1