Skip to main content
QUICK REVIEW

[Paper Review] ALP: Alleviating CPU-Memory Data Movement Overheads in Memory-Centric Systems

Nika Mansouri Ghiasi, Nandita Vijaykumar|arXiv (Cornell University)|Dec 13, 2022
Parallel Computing and Optimization TechniquesComputer Science1 citations
TL;DR

ALP is a programmer-transparent hardware-software co-design technique that proactively alleviates inter-segment data movement overhead between CPU and near-data processing (NDP) units by using compiler analysis and runtime hardware support to transfer data before it is needed. It enables efficient application partitioning, achieving 54.3% average speedup over host-only execution and 45.4% over NDP-only execution across diverse workloads.

ABSTRACT

Partitioning applications between NDP and host CPU cores causes inter-segment data movement overhead, which is caused by moving data generated from one segment (e.g., instructions, functions) and used in consecutive segments. Prior works take two approaches to this problem. The first class of works maps segments to NDP or host cores based on the properties of each segment, neglecting the inter-segment data movement overhead. The second class of works partitions applications based on the overall memory bandwidth saving of each segment, and does not offload each segment to the best-fitting core if they incur high inter-segment data movement. We show that 1) mapping each segment to its best-fitting core ideally can provide substantial benefits, and 2) the inter-segment data movement reduces this benefit significantly. To this end, we introduce ALP, a new programmer-transparent technique to leverage the performance benefits of NDP by alleviating the inter-segment data movement overhead between host and memory and enabling efficient partitioning of applications. ALP alleviates the inter-segment data movement overhead by proactively and accurately transferring the required data between the segments. This is based on the key observation that the instructions that generate the inter-segment data stay the same across different executions of a program on different inputs. ALP uses a compiler pass to identify these instructions and uses specialized hardware to transfer data between the host and NDP cores at runtime. ALP efficiently maps application segments to either host or NDP considering 1) the properties of each segment, 2) the inter-segment data movement overhead, and 3) whether this overhead can be alleviated in a timely manner. We evaluate ALP across a wide range of workloads and show on average 54.3% and 45.4% speedup compared to only-host CPU or only-NDP executions, respectively.

Motivation & Objective

  • To address the performance degradation caused by inter-segment data movement between host CPU and NDP computation units in memory-centric systems.
  • To identify and mitigate the performance impact of data movement that undermines the benefits of offloading memory-bound segments to NDP units.
  • To enable efficient application partitioning between host and NDP cores by factoring in both architectural suitability and inter-segment data movement overhead.
  • To develop a transparent, scalable solution that works across different NDP system architectures without requiring programmer intervention.

Proposed method

  • Uses a compiler pass to statically identify instructions that generate inter-segment data, enabling prediction of required data transfers.
  • Employs specialized hardware support to proactively transfer data between host and NDP cores at runtime based on compiler-identified data dependencies.
  • Integrates both static (compiler) and dynamic (runtime) information to make intelligent partitioning decisions that balance computational benefit and data movement cost.
  • Considers segment-level properties (e.g., memory access patterns) and estimated data movement overhead to map each basic block to its optimal execution unit.
  • Leverages the observation that inter-segment data-generating instructions remain consistent across program executions, enabling reliable prediction.
  • Supports flexible deployment across various NDP architectures by abstracting from specific hardware details in the logic layer.

Experimental results

Research questions

  • RQ1How does inter-segment data movement between host and NDP units impact the performance of application partitioning in memory-centric systems?
  • RQ2To what extent does inter-segment data movement reduce the performance benefits of offloading memory-bound segments to NDP units?
  • RQ3Can proactive data transfer between host and NDP cores mitigate the performance cost of inter-segment data movement and unlock the full potential of NDP?
  • RQ4Is it possible to achieve efficient, transparent, and scalable application partitioning between host and NDP units without programmer involvement?

Key findings

  • ALP achieves an average speedup of 54.3% compared to executing the entire application on the host CPU, demonstrating significant performance gains.
  • ALP achieves an average speedup of 45.4% compared to executing the entire application on NDP cores, showing effective utilization of NDP resources.
  • Without ALP, inter-segment data movement can reduce performance benefits by up to 56.3% and even cause slowdowns compared to host-only execution.
  • The performance of naive partitioning—based solely on segment characteristics—drops by up to 9.5% on average due to unmitigated data movement overhead.
  • ALP enables near-ideal partitioning by proactively managing data movement, allowing segments to be mapped to their best-fit execution units.
  • The technique is effective across a wide range of workloads, indicating broad applicability in memory-centric system designs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.