Skip to main navigation Skip to search Skip to main content

LWPTool: A Lightweight Profiler to Guide Data Layout Optimization

  • Beihang University
  • College of William and Mary

Research output: Contribution to journalArticlepeer-review

Abstract

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.

Original languageEnglish
Article number8367889
Pages (from-to)2489-2502
Number of pages14
JournalIEEE Transactions on Parallel and Distributed Systems
Volume29
Issue number11
DOIs
StatePublished - 1 Nov 2018

Keywords

  • Data locality
  • address sampling
  • array regrouping
  • lightweight profiling
  • structure splitting

Fingerprint

Dive into the research topics of 'LWPTool: A Lightweight Profiler to Guide Data Layout Optimization'. Together they form a unique fingerprint.

Cite this