PIM or CXL-PIM? Understanding Architectural Trade-offs Through Large-Scale Benchmarking

Ivan Lee, B. Wang, Liang-Chi Chen, Wen Sheng Lim, Dawei Chang, Yu-Ming Chang, Chao-Ching HoarXiv 2025 · DOI

Abstract: Processing-in-memory (PIM) reduces data movement by executing near memory, but our large-scale characterization on real PIM hardware shows that end-to-end performance is often limited by disjoint host and device address spaces that force explicit staging transfers. In contrast, CXL-PIM provides a unified address space and cache-coherent access at the cost of higher access latency. These opposing interface models create workload-dependent tradeoffs that are not captured by small-scale studies. This work presents a side-by-side, large-scale comparison of PIM and CXL-PIM using measurements from real PIM hardware and trace-driven CXL modeling. We identify when unified-address access amortizes link latency enough to overcome transfer bottlenecks, and when tightly coupled PIM remains preferable. Our results reveal phase- and dataset-size regimes in which the relative ranking between the two architectures reverses, offering practical guidance for future near-memory system design.

Introduction

Traditional Processing-in-Memory (PIM) promises massive speedups by moving compute closer to data. However, at realistic data scales, explicit data copying between the host and device becomes a crippling bottleneck. This paper compares traditional PIM against CXL-PIM—which offers a unified, cache-coherent address space—using large-scale benchmarks to reveal when eliminating data copies outweighs the higher latency of the CXL link.

Architectural Trade-offs: Disjoint vs. Unified Address Spaces

Current commercial PIM systems, such as UPMEM, operate with disjoint address spaces. To run a computation, the host CPU must explicitly copy data into the PIM memory, trigger the compute, and copy the results back. While small-scale academic studies often overlook this, at realistic, large data scales, this staging process dominates execution time.

Compute Express Link (CXL) offers an alternative: CXL-PIM. By attaching PIM devices via a CXL interface, the device memory becomes part of the host's unified address space. The CPU can access it directly using standard load/store instructions, eliminating explicit copies.

Comparison of traditional PIM and CXL-PIM architectures and data flow.

The primary trade-off is that every access in CXL-PIM traverses a PCIe-based CXL link, which has higher latency than standard DDR memory. This study seeks to determine if the benefit of a unified address space outweighs the cost of CXL's higher access latency at large scales.

Methodology

To evaluate these contrasting architectures, we combined real-world hardware profiling with advanced simulation:

  • Real PIM Benchmarking: Workloads were run on a real UPMEM PIM system with 512 Processing Units (PUs) to capture realistic execution times and host-device interactions.
  • Trace-Driven CXL Modeling: Execution traces were fed into an extended version of CXLMemSim to model a CXL-PIM device over a PCIe Gen5 x8 link.
  • Large-Scale Datasets: We utilized the PrIM benchmark suite (VA, SpMV, BS, MLP, etc.), scaling datasets up to 128 GB to expose real-world bottlenecks invisible in small-scale tests.

Key Results and Insights

Our analysis reveals several critical findings regarding the scalability and performance of PIM systems.

The Dominance of Transfer Overhead

On real PIM hardware, host-device data transfers accounted for 60% to 90% of the total execution time for most large-scale workloads. For benchmarks like Vector Addition and Select, actual compute was less than 15% of the runtime.

Time breakdown (%) and normalized data transfer time across benchmarks and PU counts.

As shown in the figure above, the ratio of transfer time to overall runtime (red line) often increases with the number of PUs, illustrating a "scalability illusion" where adding more compute cores does not translate to faster end-to-end execution due to transfer bottlenecks.

Performance Gains with CXL-PIM

CXL-PIM reduced transfer times by 9x to 10x on average at 512 PUs compared to traditional PIM. For highly transfer-bound workloads (like UNI, TRNS, SpMV, and MLP), the reduction exceeded 50x. Furthermore, a "CXL-Assisted" data flow (CXL-PIM-A), where the device controller handles inter-PU coordination, yielded a >1.3x performance improvement over baseline CXL-PIM for communication-heavy workloads like MLP.

Conclusion

CXL-PIM is a powerful tool for attacking PIM's biggest weakness—data transfer overhead. However, it is not a silver bullet. Its success depends on aggressive internal parallelism and smart controller management to prevent the CXL link from becoming a new serialization bottleneck. Future work should focus on pipelining execution and transfer, and developing more autonomous CXL controllers to further minimize host CPU involvement.

Summary updated

BibTeX
@misc{lee2025pim,
  author = {Ivan Lee and B. Wang and Liang-Chi Chen and Wen Sheng Lim and Dawei Chang and Yu-Ming Chang and Chao-Ching Ho},
  title = {{PIM or CXL-PIM? Understanding Architectural Trade-offs Through Large-Scale Benchmarking}},
  year = {2025},
  eprint = {2511.14400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.14400},
  howpublished = {arXiv},
}
Figure